This file contains hidden or 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 getSelectionCoords(win) { | |
| win = win || window; | |
| var doc = win.document; | |
| var sel = doc.selection, range, rects, rect; | |
| var x = 0, y = 0; | |
| if (sel) { | |
| if (sel.type != "Control") { | |
| range = sel.createRange(); | |
| range.collapse(true); | |
| x = range.boundingLeft; |
This file contains hidden or 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="select-country" class="select-country"> | |
| <p class="select-country__current-point" onclick="selectShow()">Country:<span id="current-point"><?php echo $map_data[0]->country_title; ?></span></p> | |
| <ul class="select-country__list-point"> | |
| <?php foreach ( $map_data as $item ) { ?> | |
| <li><a data-id="<?php echo $item->country_id; ?>" class="select-point" href="#"><?php echo $item->country_title; ?></a></li> | |
| <?php } ?> | |
| </ul> | |
| </div> |
This file contains hidden or 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'; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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; |
NewerOlder