mirror of
https://github.com/Doodle3D/doodle3d-client.git
synced 2024-11-22 09:17:56 +01:00
adjusted js -> less automatic adjustments going on (for now)
This commit is contained in:
parent
01ce6cf593
commit
7ccfff04f0
@ -105,11 +105,8 @@ function doOnResize() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function initLayouting() {
|
||||||
$("document").ready(function(){
|
console.log("f:initLayouting()");
|
||||||
console.log("ready");
|
|
||||||
|
|
||||||
initDrawing();
|
|
||||||
|
|
||||||
// imgDims[0] = parseInt($(".container").css("width").match(/[0-9]+/).join(""));
|
// imgDims[0] = parseInt($(".container").css("width").match(/[0-9]+/).join(""));
|
||||||
// imgDims[1] = parseInt($(".container").css("height").match(/[0-9]+/).join(""));
|
// imgDims[1] = parseInt($(".container").css("height").match(/[0-9]+/).join(""));
|
||||||
@ -128,8 +125,15 @@ $("document").ready(function(){
|
|||||||
// $(".container").css("height", window.innerHeight);
|
// $(".container").css("height", window.innerHeight);
|
||||||
|
|
||||||
// Initial execution if needed
|
// Initial execution if needed
|
||||||
|
/* 2013-07-26 not doing this resizing stuff now, it's not working well yet
|
||||||
|
if (!window.addEventListener) {
|
||||||
|
window.attachEvent('orientationchange', doOnOrientationChange);
|
||||||
|
window.attachEvent('resize', doOnResize)
|
||||||
|
} else {
|
||||||
window.addEventListener('orientationchange', doOnOrientationChange);
|
window.addEventListener('orientationchange', doOnOrientationChange);
|
||||||
window.addEventListener('resize', doOnResize)
|
window.addEventListener('resize', doOnResize)
|
||||||
|
}
|
||||||
|
//*/
|
||||||
doClientAndOrientationStuff();
|
doClientAndOrientationStuff();
|
||||||
// doOnOrientationChange();
|
// doOnOrientationChange();
|
||||||
|
|
||||||
@ -138,17 +142,11 @@ $("document").ready(function(){
|
|||||||
console.log("$('#drawAreaContainer').innerHeight(): " + $("#drawAreaContainer").innerHeight());
|
console.log("$('#drawAreaContainer').innerHeight(): " + $("#drawAreaContainer").innerHeight());
|
||||||
console.log("$('#drawAreaContainer').offset().top: " + $("#drawAreaContainer").offset().top);
|
console.log("$('#drawAreaContainer').offset().top: " + $("#drawAreaContainer").offset().top);
|
||||||
|
|
||||||
|
|
||||||
|
/* 2013-07-26 not doing this resizing stuff now, it's not working well yet
|
||||||
if (window.innerHeight < 768) {
|
if (window.innerHeight < 768) {
|
||||||
$('#drawAreaContainer').innerHeight(window.innerHeight - $("#drawAreaContainer").offset().top - 70);
|
$('#drawAreaContainer').innerHeight(window.innerHeight - $("#drawAreaContainer").offset().top - 70);
|
||||||
}
|
}
|
||||||
|
//*/
|
||||||
|
|
||||||
// DEBUG
|
}
|
||||||
// $(".agentInfo").css("display", "none");
|
|
||||||
$(".debugBtn").click(function(e) {
|
|
||||||
console.log("debugClick");
|
|
||||||
$(".agentInfo").toggleClass("agentInfoToggle");
|
|
||||||
e.preventDefault();
|
|
||||||
})
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user