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
[[$HTML_START]] | |
[[$HEADER]] | |
[[addAsset? &code=`<style>.breadcrumbs{display:none;}</style>`]] | |
<link href="[[++assets_common_path]]/css/mt4-se/landing/s-e.css" rel="stylesheet" type="text/css"/> | |
[[addAsset?&beforeBody=` | |
<script> | |
var tag = document.createElement('script'); | |
tag.src = "https://www.youtube.com/iframe_api"; |
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).mouseup(function (e) | |
{ | |
var container = $("YOUR CONTAINER SELECTOR"); | |
if (!container.is(e.target) // if the target of the click isn't the container... | |
&& container.has(e.target).length === 0) // ... nor a descendant of the container | |
{ | |
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
$string = <<<EOD | |
string with $var \n | |
EOD; |
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
<?php | |
// #1, Larry Ullman, p.76 | |
$q = 'SELECT UNIX_TIMESTAMP(MAX(date_added)), UNIX_TIMESTAMP(MAX(date_completed)) FROM tasks'; | |
$r = mysqli_query($dbc,$q); | |
list($max_a,$max_c) = mysqli_fetch_array($r,MYSQLI_NUM); | |
$max = ($max_a > $max_c) ? $max_a : $max_c; | |
// #2, Bob Ray, p.285 |
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
<?php | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); | |
$domain = 'http://' . $_SERVER['HTTP_HOST']; | |
$cache_path = ($_SERVER['DOCUMENT_ROOT']. '/cache/'); | |
$url = $domain . strtok($_SERVER["REQUEST_URI"],'?'); // requested URL w/o params | |
$full_url = $domain . $_SERVER['REQUEST_URI']; // for example http://devamcomau.int.fxservice.com/trading-platforms/mt4-se/indicator-innovations | |
$cultureKey = ('_' . $modx->getOption('cultureKey')); |
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
<?php | |
$pdf_type = (isset($_GET['pdf_type']) ? (strip_tags($_GET['pdf_type'])) : false); | |
if(!$pdf_type) return; | |
$domain = 'http://' . $_SERVER['HTTP_HOST']; | |
$cache_path = ($_SERVER['DOCUMENT_ROOT']. '/cache/'); | |
$url = $domain . strtok($_SERVER["REQUEST_URI"],'?'); | |
$full_url = $domain . $_SERVER['REQUEST_URI']; | |
$cultureKey = ('_' . $modx->getOption('cultureKey')); | |
$fileName = ($modx->resource->get('alias')) . $pdf_type . $cultureKey . '.pdf'; |
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
<?php | |
$context = $scriptProperties['context'] ?: 'ukltd'; | |
//$context = (empty($scriptProperties['context'])) ? 'ukltd' : $scriptProperties['context']; | |
$linkedId = $modx->runSnippet('BabelTranslation', array( | |
'contextKey' => $context, | |
'resourceId' => $modx->resource->get('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
countryData={ | |
name: 'check_country_id', | |
value: $("#" + type + "Form").find('select[name=country]').val() | |
}; | |
formData.push(countryData) |