This partially addresses #43.

This commit is contained in:
Jonathan Rosenbaum
2017-12-11 06:38:56 +00:00
parent 49157e3341
commit 8aae19686b
2 changed files with 24 additions and 19 deletions
+22 -17
View File
@@ -76,28 +76,33 @@ if($_GET['new_user_id']>0){
$( window ).on( "load", function() {
var body_margin = $("#shop_log_iframe").contents().find("body").css("margin");
body_margin = body_margin.replace("px","");
body_margin = body_margin * 4;
var shop_log_height = $("#shop_log_iframe").contents().find("#shop_height").height() +
$("#shop_log_iframe").contents().find("#header_height").height() + body_margin;
$("#shop_log_iframe").css({"height": shop_log_height});
$("#shop_log_iframe").contents().find("#shop_log_link").attr("href","/shop_log_iframe.php");
// does this work?
$("#shop_log_iframe").contents().find("#sign_in_button").on("click keypress", function(e){
if ( $("#epframeshop_log_pad").length ) {
var body_margin = $("#shop_log_iframe").contents().find("body").css("margin");
body_margin = body_margin.replace("px","");
body_margin = body_margin * 4;
var shop_log_height = $("#shop_log_iframe").contents().find("#shop_height").height() +
$("#shop_log_iframe").contents().find("#header_height").height() + body_margin;
$("#shop_log_iframe").css({"height": shop_log_height});
});
$("#shop_log_iframe").css({"height": shop_log_height});
$("#shop_log_iframe").contents().find("#shop_log_link").attr("href","/shop_log_iframe.php");
// does this work?
$("#shop_log_iframe").contents().find("#sign_in_button").on("click keypress", function(e){
var body_margin = $("#shop_log_iframe").contents().find("body").css("margin");
body_margin = body_margin.replace("px","");
body_margin = body_margin * 4;
var shop_log_height = $("#shop_log_iframe").contents().find("#shop_height").height() +
$("#shop_log_iframe").contents().find("#header_height").height() + body_margin;
$("#shop_log_iframe").css({"height": shop_log_height});
});
} // if etherpad
}); // end $( window ).on