The particles/plankton swimming around in the background of the aquatilis website:
Forked from Justin Windle's Pen Gravitational Field.
A Pen by Tim Holman on CodePen.
The particles/plankton swimming around in the background of the aquatilis website:
Forked from Justin Windle's Pen Gravitational Field.
A Pen by Tim Holman on CodePen.
console.log($LINE$); | |
// LINE = lineNumber() |
div#home-store-info { | |
@extend .hidden-xs; | |
@extend .col-sm-12; | |
@extend .col-md-12; | |
margin-bottom: 20px; | |
div.store-info-block { | |
background-color: rgba(255, 255, 255, 0.4); | |
color: #1b6a8e; | |
@extend .row; |
javascript: | |
(function (){ | |
var iframe_wrap = document.getElementsByClassName('b-iframe-aplayer')[0], | |
_i = iframe_wrap.getElementsByTagName('iframe')[0], | |
player = _i.contentDocument.getElementById('player'), | |
teasers = _i.contentDocument.getElementsByClassName('b-aplayer-teasers')[0], | |
duration = player.duration; | |
teasers.style.visibility = 'hidden'; | |
player.currentTime = duration; |
def click_on_day_at_datepicker(date) | |
d = Date.parse(date) | |
month = d.strftime('%b') | |
day = d.day | |
# XPath select Month switcher | |
xpath_month_switcher_selector = '//div[contains(@class, "datepicker-days") and not(contains(@style,"display:none"))]//th[contains(@class, "datepicker-switch")]' | |
find(:xpath, xpath_month_switcher_selector).click | |
# XPath select particular Month | |
xpath_particular_month_selector = "//div[contains(@class, \"datepicker-months\") and not(contains(@style,\"display:none\"))]//*[text() = \"#{month}\"]" | |
find(:xpath, xpath_particular_month_selector).click |
def set_ajax_counter(global_var) | |
page.execute_script <<-SCRIPT | |
window["#{global_var}"] = 0; | |
$(document).on("ajaxSend", function(){ | |
window["#{global_var}"]++; | |
console.log('increment ajax counter window["#{global_var}"] = ' + window["#{global_var}"]); | |
}); | |
SCRIPT | |
end |
javascript: | |
var script=document.createElement('script'); | |
script.onload = function () { | |
stripPhoto(); | |
}; | |
script.src='http://code.jquery.com/jquery-1.9.1.min.js'; | |
document.getElementsByTagName('head')[0].appendChild(script); | |
function stripPhoto () { | |
var photos = $('.b-photoArray'); | |
var body = $('body'); |
//<editor-fold desc="функция проверки введения только цифр"> | |
var tel_01 = $('#con_tel'); | |
function isNumber(n) { | |
return !isNaN(parseFloat(n)) && isFinite(n); | |
} | |
function onlyNumbers(input) { | |
input.on('keypress', function(e){ | |
// check IE version from this function <script src="https://gist.github.com/mir4a/5211477/raw/b78e8f60b2cc195a7831672cd2ee0fe308f17e3f/check_ie.js"></script> |
function zero(number) { | |
return (number < 10 ? '0' : '') + number; | |
} |
//<editor-fold desc="Таймер обратного отсчета"> | |
var t_data = document.getElementById('tender_data'); // get element with data-set | |
var timer_end_date = t_data.getAttribute('data-timer-end'); // get data-set timer-end | |
var timerHour = $('.b-timer_wrap > .i-hour'); // where to write hours value | |
var timerMin = $('.b-timer_wrap > .i-minute'); // where to write minutes value | |
var timerSec = $('.b-timer_wrap > .i-sec'); // where to write seconds value | |
function zero(number) { | |
return (number < 10 ? '0' : '') + number; | |
} |