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> | |
$(document).ready(function(){ | |
var imgs = document.getElementsByClassName('js1'); | |
for (var i = imgs.length; i > 0; i--) { | |
console.log("string",imgs[i]); | |
if ($('.js1').eq(i).attr('src') == "") { | |
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> | |
$(document).ready(function(){ | |
var imgs = document.getElementsByClassName('swipebox'); | |
for (var i = imgs.length; i > 0; i--) { | |
//console.log("string",imgs[i]); | |
if ($('.swipebox').eq(i).attr('href') == "") { | |
console.log($('.swipebox').eq(i).parent()); |
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 class="search_wrapper" style="display:none;z-index:100000;position:absolute;width:80%;height:70%;border:1px solid #ddd;left:10%;top:10%;background-color:#ddd;border-radius: 3px 3px 3px 3px;"> | |
<div class="search_wrapper_2" style="position: absolute; width:98%;height:90%;top:5%;left:1%;background-color:white;"> | |
<span style="position: absolute;top:-5%;">Поиск</span> | |
<div class="search_line" style="position: absolute;width: 98%;height:30px;left:0.8%;top:20px;"> | |
<input type="text" class="search_input" style="height:25px;width:100%;border: 2px solid #555"> | |
</div> | |
<div class="search_content" style="position: absolute;width: 98%;height:80%;left:0.8%;top:60px;overflow:auto;"> | |
<div style=" " class="how"> | |
[[!pdoResources? |
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 class="jquery_fpZoom"> | |
<div class="fpZoom_close"> | |
<i class="fa fa-times-circle" aria-hidden="true"></i> | |
</div> | |
<div class="fpZoom_hidden_closer"> | |
</div> | |
</div> | |
<script> |
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 gulp = require('gulp'), | |
sass = require('gulp-sass'); | |
gulp.task('sass',function(){ | |
return gulp.src('app/sass/**/*.sass') | |
.pipe(sass()) | |
.pipe(gulp.dest('app/css')); | |
}); | |
gulp.task('watch',function(){ |
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 getQueryVariable(variable) { | |
var query = window.location.search.substring(1); | |
var vars = query.split('&'); | |
for (var i = 0; i < vars.length; i++) { | |
var pair = vars[i].split('='); | |
if ((pair[0]) == variable) { | |
return (pair[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
window.onscroll = function() { | |
var scrolled = window.pageYOffset || document.documentElement.scrollTop; | |
document.getElementById('showScroll').innerHTML = scrolled + 'px'; | |
} |
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 currentSlide = 0; | |
var length = 0; | |
var transition = 1000; | |
var changeDelay = 5000; | |
var isLooping = true; | |
var timer; | |
var mainSlider; | |
// Hide Method | |
function hideImage(slider) { |
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 class="saffslider"> | |
<div class="saffslider__slide" style="background-image: url(img/slide-test.jpg);"></div> | |
<div class="saffslider__slide" style="background-image: url(img/wrapper-background.jpg);"></div> | |
<div class="saffslider__slide" style="background-image: url(img/slide-test.jpg);"></div> | |
</div> | |
<script src="libs/jquery-3.3.1.min.js"></script> | |
<script src="libs/saffslider/saffslider.js"></script> | |
<script> | |
$('.saffslider').myfunction({ |
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
const qsort = (arr) => { | |
if (arr.length < 2) { | |
return arr; | |
} else { | |
// Опорная точка для деления массива, выбирается случайно | |
const pivotPosition = Math.floor(Math.random() * arr.length); | |
const pivot = arr[pivotPosition]; | |
// Значения меньшие, либо равные опорному | |
// попадают в новый массив less | |
const less = arr.filter((value, index) => { |
OlderNewer