This file contains hidden or 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
// https://wicg.github.io/IntersectionObserver/#intersection-observer-private-slots | |
/* | |
callback IntersectionObserverCallback = void (sequence<IntersectionObserverEntry> entries, IntersectionObserver observer) | |
[Constructor(IntersectionObserverCallback callback, optional IntersectionObserverInit options), | |
Exposed=Window] | |
interface IntersectionObserver { | |
readonly attribute Element? root; | |
readonly attribute DOMString rootMargin; |
This file contains hidden or 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
new Swipe(document.getElementById("gallery"), function(event, direction) { | |
event.preventDefault(); | |
switch (direction) { | |
case "up": | |
// Handle Swipe Up | |
break; | |
case "down": | |
// Handle Swipe Down | |
break; |
This file contains hidden or 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
var MGUtil={ | |
data:[], | |
ini:0, | |
total:0, | |
addItem:function(qty,id,properties,callback) { | |
var params = {quantity:qty,id:id}; | |
if(properties != false){ | |
params.properties = properties; | |
} | |
$.ajax({ |