Article → http://www.nxworld.net/tips/css-image-hover-effects.html
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
<style type="text/css"> | |
@media only screen and (max-width: 1056px) { | |
.home-bottom-box { | |
width: 100%; | |
margin: 0px; | |
padding: 0px; | |
} | |
div[class^="home-bottom-box"] { | |
width: 100%; | |
background-position: 50%; |
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
{ background: #66cdcc; | |
background: -moz-linear-gradient(-45deg,#66cdcc 0%,#336799 100%); | |
background: -webkit-gradient(linear,left top,right bottom,color-stop(0%,#66cdcc),color-stop(100%,#336799)); | |
background: -webkit-linear-gradient(-45deg,#66cdcc 0%,#336799 100%); | |
background: -o-linear-gradient(-45deg,#66cdcc 0%,#336799 100%); | |
background: -ms-linear-gradient(-45deg,#66cdcc 0%,#336799 100%); | |
background: linear-gradient(-45deg,#66cdcc 0%,#336799 100%); | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#66cdcc,endColorstr=#336799,GradientType=1); | |
} |
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
'use strict'; | |
/* Initialize Locales */ | |
l20n.initializeLocales('demo', { | |
'locales': ['en-US', 'fr', 'it', 'ge', 'ar', 'ch'], | |
'default': 'en-US' | |
}); | |
/* Initializing touch events */ | |
React.initializeTouchEvents(true); |
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"> | |
var TCGA = TCGA || {}; | |
TCGA.cthouseProductId = $(".c5").text().match(/\d*/g).join(""); | |
TCGA.cthouseProductName = $(".c5").text().split(/\(/)[0]; | |
TCGA.time = new Date(); | |
TCGA.timeStamp = TCGA.time.getFullYear() + '/' + (TCGA.time.getMonth() + 1) + '/' + TCGA.time.getDate() + '::' + (TCGA.time.getHours()); | |
var _gaq = _gaq || []; |
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 operate = (function(){ | |
// num is local variable, and we can via return api to manipulate num, no other external methods to manipulate num. | |
var num; | |
function createNum() { | |
var num = new Number(0); | |
return num; | |
} |
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
<div id="class"></div> |
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"> | |
window.fbAsyncInit = function() { | |
FB.init({ | |
appId : {{yourFacebookId}}, | |
xfbml : true, | |
version : 'v2.6' | |
}); | |
checker = setInterval(function(){ | |
if (!document.querySelector(".fb-comments iframe")) { | |
spinner.setAttribute("class", "show"); |
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
function isSubset(wrap, sub) { | |
var result = true; | |
sub.map(function(letter){ | |
if (wrap.indexOf(letter) == -1) { result = false; } | |
}); | |
return result; | |
} |
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
//https://leetcode.com/problems/basic-calculator/description/ | |
var calculate = function(s) { | |
var positiveArr = s.replace(/\s|\(|\)|\-\d{1}/g,"").split(/\+/); | |
var positiveNum = positiveArr.reduce( (x,y) => parseInt(x) + parseInt(y) ); | |
var hasNegative = s.replace(/\s|\(|\)/g,"").replace(/^\d{1}|\+\d{1}/g, ""); | |
var negativeNum, negativeArr; | |
if (hasNegative) { | |
negativeArr = hasNegative.split(/\-/).filter(x=>x); |
OlderNewer