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
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?language=fra&sensor=false"></script> | |
<script type="text/javascript"> | |
var map; | |
var Markers = {}; | |
var infowindow; | |
var locations = [ | |
[ | |
'Samsung Store Madeleine', | |
'<strong>Samsung Store Madeleine</strong><p>5 Boulevard Malesherbes, 75008 Paris<br>10h – 20h</p>', | |
48.8701925, |
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
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { | |
#myElement { | |
/* IE10+ CSS styles go here */ | |
} | |
} | |
@supports (-ms-accelerator:true) { | |
#myElement { | |
/* IE Edge 12+ CSS styles goes here */ |
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
<?php | |
/** | |
* @license MIT | |
* @author Ruben Decleyn mukke@tbs-dev.co.uk> | |
* @created 12/02/2017 | |
*/ | |
namespace App\TwigExtensions; |
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
if(navigator.userAgent.match(/Trident\/7\./)) { | |
document.body.addEventListener("mousewheel", function() { | |
event.preventDefault(); | |
var wd = event.wheelDelta; | |
var csp = window.pageYOffset; | |
window.scrollTo(0, csp - wd); | |
}); | |
} |
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
$(document).ready(function(){ | |
$.ajax({ | |
url:"https://www.instagram.com/{username}/channel/?__a=1", | |
type:'get', | |
success:function(response){ | |
posts = response.graphql.user.edge_owner_to_timeline_media.edges; | |
posts_html = ''; | |
for(var i=0;i<8;i++){ | |
url = posts[i].node.display_url; | |
post_shortcode = posts[i].node.shortcode; |
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
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
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
$.ajax({ | |
url: 'https://data-asg.goldprice.org/dbXRates/USD', | |
dataType: 'text', | |
success: function(response) { | |
var prices = JSON.parse(response).items[0]; | |
var goldp = prices.xauPrice; | |
var goldx = prices.chgXau; | |
var golds = (prices.xauPrice > prices.xauClose) ? 'up' : 'down'; | |
var silverp = prices.xagPrice; | |
var silverx = prices.chgXag; |
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
$('.toggle').on('click', function(e){ | |
e.preventDefault(); | |
// Do Something | |
$(this).text($(this).text() == 'View More' ? 'View Less' : 'View More'); | |
}) | |
## Add class to body based on the URL – jQuery | |
var urlPath = window.location.pathname; |
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
// 𝔹𝕃𝔸𝕊𝕋 | |
// Run the following code manually through browser console with an opened conversation in WhatsApp (Web Version) | |
// STEP #1 | |
function sendMessageJs(message, count) { | |
for(var i = 0; i <= count; i++){ | |
window.InputEvent = window.Event || window.InputEvent; | |
var event = new InputEvent('input', { | |
bubbles: true | |
}); |