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
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'); |
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
//<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> |
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
//<editor-fold desc="Проверка версии IE"> | |
function getInternetExplorerVersion() | |
{ | |
var rv = -1; // Return value assumes failure. | |
if (navigator.appName == 'Microsoft Internet Explorer') | |
{ | |
var ua = navigator.userAgent; | |
var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})"); | |
if (re.exec(ua) != null) | |
rv = parseFloat( RegExp.$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
function zero(number) { | |
return (number < 10 ? '0' : '') + number; | |
} |
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
//<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; | |
} |
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
/* `Clear Floated Elements | |
----------------------------------------------------------------------------------------------------*/ | |
/* http://sonspring.com/journal/clearing-floats */ | |
.clear { | |
clear: both; | |
display: block; | |
overflow: hidden; | |
visibility: hidden; |
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
@footer_height: 100px; | |
body, html { | |
height: 100%; | |
} | |
.i-sticky { | |
min-height: 100%; | |
height: auto !important; | |
height: 100%; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
html { | |
width: 100%; | |
height: 100%; | |
} | |
body { |
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 | |
$token = "ADMIN_TOKEN"; // replace with your admin token | |
$url = "https://api.hipchat.com/v1/users/list?auth_token=".$token; // this url gets all users and their attributes, for more info visit https://www.hipchat.com/docs/api/ | |
$c = curl_init(); | |
curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false); // required this for https access | |
curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 2); // this one too | |
curl_setopt($c, CURLOPT_URL, $url); | |
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); | |
echo curl_exec($c); // return json data |
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
<!-- string to find --> | |
(^[а-яА-ЯёЁ a-zA-Z,. - -:;]+) | |
<!-- string to replace --> | |
<p>$1</p> |
OlderNewer