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
jQuery(document).ready(function($) { | |
$('a[href^="#"]').click(function() { | |
var el = $(this).attr('href'); | |
$('body').animate({ | |
scrollTop: $(el).offset().top | |
}, 2000); | |
return false; | |
}); | |
}); |
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> | |
var selectVarPrice = {{selectTotalPrice}}; | |
function totalPrice() { | |
if (selectVarPrice.length >= 13) {selectVarPrice = selectVarPrice.substring(0, 6);} | |
else if (selectVarPrice.length >= 12) {selectVarPrice = selectVarPrice.substring(0, 5);} | |
else if (selectVarPrice.length >= 11) {selectVarPrice = selectVarPrice.substring(0, 4);} | |
else if (selectVarPrice.length >= 10) {selectVarPrice = selectVarPrice.substring(0, 3);} | |
return [selectVarPrice]; | |
} |
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
/* | |
Example: | |
hash(5); | |
"XjJfV" | |
hash('xxxx-xx-xxxx-2011') | |
"YDFb-5e-cShX-2011" | |
hash = (+new Date()); | |
console.log(hash); |
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
/* | |
Функция из URL извлекает pathname | |
после указываем условия при котором идет и поиск совпадения | |
lastIndexOf() ищет значние в индексе, выводить на экран все после "/"" | |
*/ | |
function () { | |
var pagePath = location.pathname; | |
if (pagePath.indexOf("/search/") === 0) { | |
var searchString = pagePath.substring(pagePath.lastIndexOf("/") + 1); | |
return searchString; |
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
html,body, ul, li, div { | |
margin: 0; | |
padding: 0; | |
} | |
ul { | |
font-family: Verdana, Geneva, sans-serif; | |
text-align: justify; |
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 type="text/javascript" src=" https://code.jquery.com/jquery-2.2.2.min.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
#Create file with name 'post-receive' in directory hooks | |
#delete full comment | |
#!/bin/sh | |
git --work-tree=/var/www/domain.com --git-dir=/var/repo/site.git checkout -f |
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
# Данные Команды добавляют в автозагрузку shared folders VMware | |
# Вариант 1. | |
a. Install open-vm-tools, apt-get install open-vm-tools. | |
b. Install open-vm-tools-dkms, apt-get install open-vm-tools-dkms. | |
c. Run /usr/bin/vmware-hgfsclient, it will display your shared folder. | |
d. Update your /etc/fstab using the details below: |
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
https://antizapret.prostovpn.org/proxy.pac |
OlderNewer