Skip to content

Instantly share code, notes, and snippets.

View andreichirkov's full-sized avatar

Andrei Chirkov andreichirkov

  • Saint Petersburg
View GitHub Profile
@andreichirkov
andreichirkov / coordinatestoname.js
Created December 7, 2022 08:40 — forked from AmirHossein/coordinatestoname.js
Get City and Country name by coordinates via Google Maps api
// 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
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")
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');