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
// Demo: http://jsfiddle.net/xuyp8qb5/ | |
// Note: You need Google Map API Key to run demo; bit.ly/2pBgToW | |
var latlng; | |
latlng = new google.maps.LatLng(40.730885, -73.997383); // New York, US | |
//latlng = new google.maps.LatLng(37.990849233935194, 23.738339349999933); // Athens, GR | |
//latlng = new google.maps.LatLng(48.8567, 2.3508); // Paris, FR | |
//latlng = new google.maps.LatLng(47.98247572667902, -102.49018710000001); // New Town, US | |
//latlng = new google.maps.LatLng(35.44448406385493, 50.99001635390618); // Parand, Tehran, IR | |
//latlng = new google.maps.LatLng(34.66431108560504, 50.89113940078118); // Saveh, Markazi, IR |
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
gsap.set(".bg-inner", { scaleX: 0, transformOrigin: "left center" }) | |
const tl = gsap.timeline({ paused: true, defaults: { duration: 0.5, ease: "power2.inOut", } }) | |
let exitTime = 0 | |
tl.to(".bg-inner", { scaleX: 1 }).addPause("exit") | |
exitTime = tl.duration() | |
tl.to(".bg-inner", { x: '100%' }) | |
let btn = document.querySelector(".reports-main-table_body") |
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
var is_OSX = /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform); | |
var is_iOS = /(iPhone|iPod|iPad)/i.test(navigator.platform); | |
var is_Mac = navigator.platform.toUpperCase().indexOf('MAC') >= 0; | |
var is_iPhone = navigator.platform == "iPhone"; | |
var is_iPod = navigator.platform == "iPod"; | |
var is_iPad = navigator.platform == "iPad"; | |
/* Output */ | |
var out = document.getElementById('out'); |