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
<script> | |
jQuery(document).ready(function($) { | |
options = $("select[name=class-of-car]>option:first"); | |
option = options.text(); | |
var regex = /\d+.BYN/; | |
cenaselecta = regex.exec(option); |
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
if (window.hashName == '#contacts') { | |
$("#footer").css({"background-color":"#000", "border": "30px solid red", "font-size": "1.8em"}) | |
} |
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
window.hashName = window.location.hash; | |
$(window).load(function () { | |
$('html, body').animate({scrollTop: $(window.hashName).offset().top}, 2000); | |
return false;}); |
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
SELECT table_schema "database_name", sum( data_length + index_length )/1024/1024 "Data Base Size in MB" FROM information_schema.TABLES GROUP BY table_schema; |
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
jQuery(document).mouseup(function (e) { | |
var container = jQuery("#parent_popup"); | |
if (container.has(e.target).length === 0){ | |
container.hide(); | |
} | |
}); |
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
public function onBeforeCompileHead() | |
{ | |
$sefConfig = $this->_config->getGroup('config.sef'); | |
$isSite = $this->app->jbenv->isSite(); | |
if ($sefConfig->get('enabled') && $sefConfig->get('fix_canonical') && $isSite) { | |
$this->app->jbsef->canonicalFix(); | |
} | |
$categoryId = $this->app->jbrequest->getSystem('category'); | |
if ($categoryId > 0) { |
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
################################## | |
if(isset($this->item->id)) { | |
$db = JFactory::getDBO(); | |
$db->setQuery("SELECT `introtext` FROM `#__content` WHERE `state`='1' AND `catid`='8' ORDER BY RAND() LIMIT 9"); | |
$rowznaete = $db->loadObjectList(); | |
echo '<div id="rand_block"> | |
<span class="namerand">Знаете ли вы, что:</span>'; | |
$cunt='0'; | |
foreach ($rowznaete as $znaete) { | |
$cunt ++; |
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
$result = array(); | |
$nav_cont = ''; | |
######################################### | |
$smatches = array(); | |
preg_match_all("/\<[hH]([1-6])\>(.*?)\<\/[hH][1-6]\>/s",$this->item->text,$smatches); | |
$content = $this->item->text; | |
################################ | |
$quantityanchor=0;//Счетчик для якоря | |
$soderjanie='<div id="navigator"><span>Содержание:</span><ol>'; | |
$matches = array(); |
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
// 1 уровня | |
$childrens = $category->getChildren(); | |
// все уровни | |
$childrens = $category->getChildren($category->id); |
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><label data-ydwidget-open><span id='yd_delivery' class='btn btn-small typodefcolor'> Выбрать на карте </span></label></b></div> |