This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// $list has a nested structure like: | |
// lists: [ | |
// { | |
// "id": "TODO-ns88qrJDVXizlF0l", | |
// …properties omitted for brevity | |
// "cards": [ | |
// { | |
// "id": "6OPzS6B6WoBT0J_EGqUEy", | |
// "listId": "TODO-ns88qrJDVXizlF0l", | |
// …properties omitted for brevity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//for zoom detection | |
px_ratio = window.devicePixelRatio || window.screen.availWidth / document.documentElement.clientWidth; | |
$(window).resize(function(){isZooming();}); | |
function isZooming(){ | |
var newPx_ratio = window.devicePixelRatio || window.screen.availWidth / document.documentElement.clientWidth; | |
if(newPx_ratio != px_ratio){ | |
px_ratio = newPx_ratio; | |
console.log("zooming"); |