mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2026-09-03 02:11:38 -04:00
This partially addresses #43.
This commit is contained in:
+22
-17
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user