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
$('.cyan-right-icon').click(function (event) { | |
event.stopPropagation(); | |
$(this).parent().toggleClass('right-margin'); | |
$(".box-fake-chat").toggleClass('show'); | |
}); | |
// For All the devices including Safari, chrome, firefox | |
jQuery(document).on('click touchend touchstart','body', function (e) { | |
var target = e.target; //target div recorded | |
if ($('.box-fake-chat').hasClass("show")) { |
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
(function(){ | |
var deviceDetector = (function () { | |
var ua = navigator.userAgent.toLowerCase(); | |
var detect = (function(s) { | |
if(s===undefined){ | |
s=ua; | |
} else { | |
ua = s.toLowerCase(); | |
} | |
if(/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(ua)){ |
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
(function() { | |
if (window.location.hostname === "www.google.co.uk") { | |
if (window.location.href.indexOf("/links") > -1) { | |
document.body.style.opacity = "0"; | |
var redirectURL = window.location.href.replace("//www.","//www1."); | |
console.log(redirectURL); | |
var expQueryParams = "alpha=1"; | |
var queryParams = (redirectURL.indexOf("?") === -1) ? "?" + expQueryParams : "&" + expQueryParams; | |
redirectURL += queryParams; | |
window.location.replace(redirectURL); |
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
Html | |
_____ | |
<ul> | |
<li> | |
<a href="http://help.marksandspencer.com/support/legal-and-ethical/privacy-policy1">aa</a> | |
</li> | |
<li> | |
<a href="http://help.marksandspencer.com/support/legal-and-ethical/privacy-policy1">aa</a> | |
</li> | |
<li> |
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 TestName = { | |
init: function() { | |
this.TestNameCss(true); | |
this.mainJS(); | |
}, | |
TestNameCss: function(applyCss) { | |
if(applyCss){ | |
var mainCss = ''; | |
var headofdoc = document.getElementsByTagName('head')[0]; | |
var s = document.createElement('style'); |
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
$("#squaredTwo").click(function(){ | |
if(jQuery(this).val() === "unchecked") { | |
$(this).attr('value', 'checked'); | |
console.log(jQuery("#squaredTwo").val()); | |
} else { | |
$(this).attr('value', 'unchecked'); | |
console.log(jQuery("#squaredTwo").val()); | |
} | |
}); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
* { | |
box-sizing: border-box; | |
} | |
/* Create three equal columns that floats next to each other */ |
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
<style> | |
.row.make-columns { | |
-moz-column-width: 19em; | |
-webkit-column-width: 19em; | |
-moz-column-gap: 1em; | |
-webkit-column-gap:1em; | |
} | |
.row.make-columns > div { | |
display: inline-block; |