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 get_name_browser(){ | |
// получаем данные userAgent | |
var ua = navigator.userAgent; | |
// с помощью регулярок проверяем наличие текста, | |
// соответствующие тому или иному браузеру | |
if (ua.search(/Chrome/) > 0) return 'Google Chrome'; | |
if (ua.search(/Firefox/) > 0) return 'Firefox'; | |
if (ua.search(/Opera/) > 0) return 'Opera'; | |
if (ua.search(/Safari/) > 0) return 'Safari'; | |
if (ua.search(/MSIE/) > 0) return 'Internet Explorer'; |
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
.error-phone.error p{ | |
font-size: 11px; | |
color: #C32929; | |
line-height: 11px; | |
margin-bottom: 5px; | |
margin-top: 5px; | |
} | |
.error-box.error p{ | |
font-size: 11px; | |
color: #C32929; |
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
<form id="form2" method="post" class="headerform"> | |
<div class="form-group"> | |
<label> | |
<input type="text" class="form-control phone" name="phone" id="one_click" placeholder="+7 (___) ___-__-__" > | |
<input type="hidden" class="name" name="one_click" value="бляя"> | |
</label> | |
</div> | |
<button id="submitForm" class="submit" type="submit">Заказать</button> | |
</form> | |
//надо вставить <input type="hidden" class="name" name="one_click" value="бляя"> |
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 shuffle(array) { | |
var currentIndex = array.length, temporaryValue, randomIndex; | |
// While there remain elements to shuffle... | |
while (0 !== currentIndex) { | |
// Pick a remaining element... | |
randomIndex = Math.floor(Math.random() * currentIndex); | |
currentIndex -= 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
#form3{ | |
top: 0; | |
padding: 25px 35px; | |
} | |
label { | |
width: 100%; | |
} | |
label input{ | |
width: 100%; | |
height: 45px; |
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="file_upload"> | |
<button type="button">Выбрать</button> | |
<div>Файл не выбран</div> | |
<input type="file"> | |
</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
document.addEventListener("DOMContentLoaded", function() { | |
function scrollWidget(){ | |
var widget = document.getElementById('villa-calendar-wrapper'), | |
headerHeight = document.getElementById('header-outer').offsetHeight, | |
widgetPositionParams = widget.getBoundingClientRect(), | |
scrollHeight = window.pageYOffset || document.documentElement.scrollTop; | |
if(widgetPositionParams.top < scrollHeight){ | |
widget.style.top = headerHeight + 20 + 'px'; |
OlderNewer