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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
sudo a2dismod php5.6 | |
sudo a2enmod php7.0 | |
sudo service apache2 restart |
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 OpartDevisPopulateSelectCarrier(data) { | |
//decode jsoon; | |
data = $.parseJSON(data); | |
if (data['prefered_order']) { | |
// get prefered carrier order | |
var order = data['prefered_order'].split(','); | |
var carrierSelect = $('#opart_devis_carrier_input'); |
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
/** | |
* Roll out answer | |
*/ | |
$(".gomakoil_faq_page .questions").click(function (e) { | |
e.preventDefault(); | |
var answer_page_link = $(this).find(".icon_fag"); | |
var answer_block = $(this).next(); | |
if ($(this).hasClass('as_url')) { |
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
//---// | |
for (var k=0; k < order.length; k++) { | |
if ($('#selected_carrier').val() == order[k]) { | |
var selected = 'selected'; | |
} else { | |
var selected = ''; | |
} | |
carrierSelect.append('<option value="' + order[k] + '" ' + selected + '>' + data[order[k]]['name'] + ' - ' + data[order[k]]['price'] + ' '+currency_sign+' (' + data[order[k]]['taxOrnot'] + ')</option>'); |
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
<img id="bigpic" itemprop="image" | |
src="{$img_dir}lazy-blank.png" | |
data-src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')|escape:'html':'UTF-8'}" | |
title="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}" | |
alt="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}" | |
width="{$largeSize.width}" height="{$largeSize.height}"> |
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
<img | |
src="{$product.cover.bySize.large_default.url}" | |
alt="{if $product.cover.legend}{$product.cover.legend}{else}{$product.name}{/if}" | |
width="{$product.cover.bySize.large_default.width}" | |
itemprop="image" | |
data-id-img="{$product.cover.id_image}"> | |