|
|
@ -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 |
|
|
|
|
|
|
|