Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Magento
- *
- * NOTICE OF LICENSE
- *
- * This source file is subject to the Academic Free License (AFL 3.0)
- * that is bundled with this package in the file LICENSE_AFL.txt.
- * It is also available through the world-wide-web at this URL:
- * http://opensource.org/licenses/afl-3.0.php
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@magento.com so we can send you a copy immediately.
- *
- * DISCLAIMER
- *
- * Do not edit or add to this file if you wish to upgrade Magento to newer
- * versions in the future. If you wish to customize Magento for your
- * needs please refer to http://www.magento.com for more information.
- *
- * @category design
- * @package base_default
- * @copyright Copyright (c) 2006-2014 X.commerce, Inc. (http://www.magento.com)
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
- */
- /**
- * Product view template
- *
- * @see Mage_Catalog_Block_Product_View
- * @see Mage_Review_Block_Product_View
- */
- ?>
- <script type="text/javascript" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS) . 'itoris/productqa/productqa.js'; ?>"></script>
- <?php
- $_helper = $this->helper('catalog/output');
- $_product = $this->getProduct();
- $currentProductId=$_product->getId();
- $_qxdHelper = $this->helper('qxd_updateprice');
- $_memcached = Mage::helper('memcached')->initMemcached();
- $_memcachedKeys = $_memcached->getMulti(array($currentProductId.'_media',$currentProductId.'_reviewSummary',$currentProductId.'_description',$currentProductId.'_attributes',$currentProductId.'_scrollOptions'));
- //$inventoryService = Mage::getSingleton('advancedinventory/service_inventory');
- //$jsonConfig = $inventoryService->getAssociatedData();
- ?>
- <script type="text/javascript">
- var optionsPrice = new Product.OptionsPrice(<?php echo $this->getJsonConfig() ?>);
- /*google trusted store*/
- gts.push(["google_base_offer_id", "<?php echo $_product->getSku()?>"]);
- </script>
- <div id="messages_product_view"><?php echo $this->getMessagesBlock()->toHtml() ?></div>
- <div class="product-view">
- <div class="product-essential">
- <form action="<?php echo $this->getSubmitUrl($_product) ?>" method="post"
- id="product_addtocart_form"<?php if ($_product->getOptions()): ?> enctype="multipart/form-data"<?php endif; ?>>
- <?php echo $this->getBlockHtml('formkey') ?>
- <div class="no-display">
- <input type="hidden" name="product" value="<?php echo $currentProductId ?>"/>
- <input type="hidden" name="related_product" id="related-products-field" value=""/>
- </div>
- <div class="row">
- <div class="product-img-box col-sm-6">
- <?php if($_memcachedKeys[$currentProductId.'_media']){ echo $_memcachedKeys[$currentProductId.'_media']; }
- else{
- echo $this->getChildHtml('media');
- $_memcached->set($currentProductId.'_media',$this->getChildHtml('media'));
- } ?>
- </div> <!-- /.product-img-box -->
- <div class="product-shop col-sm-6">
- <div class="product-name">
- <h1><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></h1>
- </div>
- <?php if($_memcachedKeys[$currentProductId.'_reviewSummary']){ echo $_memcachedKeys[$currentProductId.'_reviewSummary']; } ?>
- <?php /*if ($_product->getShortDescription()):*/ ?><!--
- <div class="short-description">
- <div class="std"><?php /*echo $_helper->productAttribute($_product, nl2br($_product->getShortDescription()), 'short_description') */ ?></div>
- </div>
- --><?php /*endif;*/ ?>
- <?php //echo $this->getReviewsSummaryHtml($_product, false, true)?>
- <?php echo $this->getChildHtml('alert_urls') ?>
- <!-- OPEN PRODUCT INFO BLOCK -->
- <div class="product-info <?php echo $_product->getTypeID(); ?>-block">
- <?php //Mage::log($this->getChildHtml('product_type_data'), null, 'view.log') jose;?>
- <?php //echo $this->getChildHtml('product_type_data') ?>
- <!-- OPEN GET TIER PRICE -->
- <?php echo $this->getTierPriceHtml() ?>
- <!-- CLOSE GET TIER PRICE -->
- <?php if (!$this->hasOptions()) { ?>
- <!-- OPEN ADD TO BOX 1 -->
- <div class="add-to-box">
- <!-- OPEN ADD TO CART 1 -->
- <?php echo $this->getChildHtml('addtocart') ?>
- <!-- CLOSE ADD TO CART 1 -->
- <!-- OPEN ADD TO 2 -->
- <?php echo $this->getChildHtml('addto') ?>
- <!-- CLOSE ADD TO 2 -->
- </div>
- <!-- CLOSE ADD TO BOX -->
- <!-- OPEN EXTRA BUTTONS -->
- <?php echo $this->getChildHtml('extra_buttons') ?>
- <!-- CLOSE EXTRA BUTTONS -->
- <?php } else { ?>
- <!-- OPEN ADD-TO-BOX -->
- <div class="add-to-box">
- <!-- OPEN ADD-TO- 2 -->
- <?php echo $this->getChildHtml('addto') ?>
- <!-- CLOSE ADD-TO- 2 -->
- </div>
- <!-- CLOSE ADD-TO-BOX -->
- <?php } ?>
- <?php /*WDCA CODE BEGIN*/ ?>
- <?php /*echo $this->getChildHtml('rewardsReview'); */ ?>
- <?php /*echo $this->getChildHtml('points'); */ ?>
- <?php /*WDCA CODE END*/ ?>
- <?php echo $this->getChildHtml('other'); ?>
- <?php if (/*$_product->isSaleable() &&*/
- $this->hasOptions()
- ): ?>
- <!-- OPEN CONTAINER 1 -->
- <?php echo $this->getChildChildHtml('container1', '', true, true) ?>
- <!-- CLOSE CONTAINER 1 -->
- <!-- OPEN ADD TO 3 -->
- <?php echo $this->getChildHtml('addto') ?>
- <!-- CLOSE ADD TO 3 -->
- <?php endif; ?>
- </div>
- <!-- CLOSE PRODUCT INFO BLOCK -->
- <?php //echo $this->getChildHtml('social.links')?>
- <?php echo $this->getChildHtml('extrahint') ?>
- <?php /*WDCA CODE BEGINS*/ ?>
- <?php /*echo $this->getChildHtml('points'); */ ?>
- <?php /*WDCA CODE ENDS*/ ?>
- <?php if (/*$_product->isSaleable() &&*/
- $this->hasOptions()
- ): ?>
- <?php echo $this->getChildChildHtml('container2', '', true, true) ?>
- <?php endif; ?>
- </div> <!-- /.product-shop -->
- </div> <!-- /.row -->
- </form>
- <script type="text/javascript">
- //<![CDATA[
- var productAddToCartForm = new VarienForm('product_addtocart_form');
- productAddToCartForm.submit = function (button, url) {
- if (this.validator.validate()) {
- var form = this.form;
- var oldUrl = form.action;
- if (url) {
- form.action = url;
- }
- var e = null;
- try {
- this.form.submit();
- } catch (e) {
- }
- this.form.action = oldUrl;
- if (e) {
- throw e;
- }
- if (button && button != 'undefined') {
- button.disabled = true;
- }
- }
- }.bind(productAddToCartForm);
- productAddToCartForm.submitLight = function (button, url) {
- if (this.validator) {
- var nv = Validation.methods;
- delete Validation.methods['required-entry'];
- delete Validation.methods['validate-one-required'];
- delete Validation.methods['validate-one-required-by-name'];
- // Remove custom datetime validators
- for (var methodName in Validation.methods) {
- if (methodName.match(/^validate-datetime-.*/i)) {
- delete Validation.methods[methodName];
- }
- }
- if (this.validator.validate()) {
- if (url) {
- this.form.action = url;
- }
- this.form.submit();
- }
- Object.extend(Validation.methods, nv);
- }
- }.bind(productAddToCartForm);
- //]]>
- </script>
- </div>
- <div class="product-collateral">
- <?php //echo $this->getChildHtml('relatedProducts');?>
- <!--remove role (tabs) - tab content functionality -->
- <ul class="nav nav-tabs"> <!--role="tablist"-->
- <li> <!--role="presentation"-->
- <a href="#description"> <!--role="tab" data-toggle="tab"-->
- <?php echo $this->__('Product Overview') ?>
- </a>
- </li>
- <li> <!--role="presentation"-->
- <a href="#details"><!--href="" role="tab" data-toggle="tab" -->
- <?php echo $this->__('Specifications') ?>
- </a>
- </li>
- <?php /* new tabs - update template and functionality */ ?>
- <li> <!--role="presentation"-->
- <a href="#customer_qa"><!--href="" role="tab" data-toggle="tab" -->
- <?php echo $this->__('Customer Questions') ?>
- </a>
- </li>
- <li>
- <a href="#customer_reviews"> <!--role="tab" data-toggle="tab"-->
- <?php echo $this->__('Customer Reviews') ?>
- </a>
- </li>
- <!--role="tab" data-toggle="tab"-->
- <!-- <li>
- <a href="#recommended">
- < ?php echo $this->__('Recommended items') ?>
- </a>
- </li> -->
- </ul>
- <!--remove tab content functionality-->
- <div class="tab-content content-product">
- <div id="description" class="wrapper-info"> <!-- role="tabpanel" class="tab-pane active"-->
- <div class="block-title">
- <p><?php echo $this->__('Product Overview') ?></p>
- </div>
- <div class="description-data">
- <?php if($_memcachedKeys[$currentProductId.'_description']){ echo $_memcachedKeys[$currentProductId.'_description']; } ?>
- </div>
- </div>
- <div id="details" class="wrapper-info"> <!-- role="tabpanel" class="tab-pane" id="details" -->
- <div class="block-title specifications">
- <p><?php echo $this->__('Specifications') ?></p>
- <?php if($_memcachedKeys[$currentProductId.'_attributes']){ echo $_memcachedKeys[$currentProductId.'_attributes']; } ?>
- </div>
- </div>
- <div id="customer_qa" class="wrapper-info">
- <div class="block-title customer_qa">
- <p><?php echo $this->__('Customer Questions') ?></p>
- </div>
- <?php //echo $this->getChildHtml('itoris_qa') ?>
- <img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN); ?>frontend/divers/default/images/opc-ajax-loader.gif"
- alt="Loading next step..." title="Loading next step" class="v-middle" id="QALoading"
- style="float:left; margin: auto; display: none">
- </div>
- <div id="customer_reviews" class="wrapper-info"> <!--role="tabpanel" class="tab-pane" -->
- <div class="block-title review">
- <p><?php echo $this->__('Customer Reviews') ?></p>
- </div>
- <?php //echo $this->getChildHtml('product_review') ?>
- </div>
- </div>
- <br>
- <?php //echo $this->getChildHtml('awautorelated2')?>
- <?php //echo $this->getChildHtml('upsell_products') ?>
- <?php echo $this->getChildHtml('product_additional_data') ?>
- </div>
- </div>
- <?php if($_memcachedKeys[$currentProductId.'_scrollOptions']){ echo $_memcachedKeys[$currentProductId.'_scrollOptions']; } ?>
- <!-- set page position according with the tabs options -->
- <script type="text/javascript">
- if (jQuery('.product-info.simple-block').find('.regular-price.5').length != 0) {
- jQuery('.product-info.simple-block .price-box').addClass('block-regular-price');
- }
- if (jQuery('.product-info.simple-block .block-regular-price + .add-to-box').find('div').length == 0) {
- jQuery('.product-info.simple-block .block-regular-price + .add-to-box').addClass('empty-block');
- jQuery('.product-info.simple-block .block-regular-price').addClass('empty-box');
- }
- var selectOptionPrices =<?php echo $_qxdHelper->getPrices($_product); ?>;
- var defaultPrice = true;
- var valueDefaultPrice = "";
- var spinner_path = '<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif');?>';
- <?php if(!$_memcachedKeys[$currentProductId.'_description']){ ?> jQuery(".description-data").append('<div class="description-spinner"><img src=' + spinner_path + ' alt="" /></div>'); <?php } ?>
- jQuery(document).ready(function () {
- jQuery(function () {
- jQuery('a[href*="#"]:not([href="#"])').click(function () {
- if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
- var target = jQuery(this.hash);
- target = target.length ? target : jQuery('[name=' + this.hash.slice(1) + ']');
- if (target.length) {
- jQuery('html, body').animate({
- scrollTop: target.offset().top
- }, 1000);
- return false;
- }
- }
- });
- });
- jQuery("#attribute162").change(function () {
- if (defaultPrice) {
- if (jQuery(".product-shop .regular-price").first()) {
- valueDefaultPrice = jQuery(".regular-price").first().html();
- }
- if (jQuery(".product-shop .special-price .price").first().length > 0) {
- valueDefaultPrice = jQuery(".special-price .price").first().text();
- }
- defaultPrice = false;
- }
- if (!jQuery('#attribute164').length) {
- var simpleProductID = jQuery("#attribute162 option:selected").val();
- jQuery.each(selectOptionPrices, function (i, val) {
- if (simpleProductID == val.color_id) {
- if (jQuery(".product-shop .regular-price").first()) {
- jQuery(".product-shop .regular-price").html('<span class="price" >$' + parseFloat(val.price).toFixed(2) + '</span>');
- }
- if (jQuery(".product-shop .special-price .price").first().length > 0) {
- jQuery(".product-shop .special-price .price").text('$' + parseFloat(val.price).toFixed(2));
- }
- }
- });
- if (simpleProductID == "") {
- if (jQuery(".product-shop .regular-price").first()) {
- jQuery(".product-shop .regular-price").html(valueDefaultPrice);
- }
- if (jQuery(".product-shop .special-price .price").first().length > 0) {
- jQuery(".product-shop .special-price .price").text(valueDefaultPrice);
- }
- }
- } else {
- //console.log(valueDefaultPrice);
- if (jQuery(".product-shop .regular-price").first()) {
- jQuery(".product-shop .regular-price").html(valueDefaultPrice);
- }
- if (jQuery(".product-shop .special-price .price").first().length > 0) {
- jQuery(".product-shop .special-price .price").text(valueDefaultPrice);
- }
- }
- });
- jQuery("#attribute164").change(function () {
- if (defaultPrice) {
- if (jQuery(".product-shop .regular-price").first()) {
- valueDefaultPrice = jQuery(".product-shop .regular-price").first().html();
- }
- if (jQuery(".product-shop .special-price .price").first().length > 0) {
- valueDefaultPrice = jQuery(".product-shop .special-price .price").first().text();
- }
- defaultPrice = false;
- }
- var simpleProductID = jQuery("#attribute164 option:selected").val();
- if (jQuery('#attribute162').length) {
- var currentColorID = jQuery("#attribute162 option:selected").val();
- }
- jQuery.each(selectOptionPrices, function (i, val) {
- if (!jQuery('#attribute162').length) {
- if (simpleProductID == val.size_id) {
- if (jQuery(".product-shop .regular-price").first()) {
- jQuery(".product-shop .regular-price").html('<span class="price" >$' + parseFloat(val.price).toFixed(2) + '</span>');
- }
- if (jQuery(".product-shop .special-price .price").first().length > 0) {
- jQuery(".product-shop .special-price .price").text('$' + parseFloat(val.price).toFixed(2));
- }
- }
- } else {
- if (simpleProductID == val.size_id && currentColorID == val.color_id) {
- if (jQuery(".product-shop .regular-price").first()) {
- jQuery(".product-shop .regular-price").html('<span class="price" >$' + parseFloat(val.price).toFixed(2) + '</span>');
- }
- if (jQuery(".product-shop .special-price .price").first().length > 0) {
- jQuery(".product-shop .special-price .price").text('$' + parseFloat(val.price).toFixed(2));
- }
- }
- }
- });
- if (simpleProductID == "") {
- if (jQuery(".product-shop .regular-price").first()) {
- jQuery(".product-shop .regular-price").html(valueDefaultPrice);
- }
- if (jQuery(".product-shop .special-price .price").first().length > 0) {
- jQuery(".product-shop .special-price .price").text(valueDefaultPrice);
- }
- }
- });
- function loadReviewSummary()
- {
- new Ajax.Request("<?php echo $this->getUrl('productview/ajax/reviewSummary') ?>", {
- method: 'Post',
- parameters: {"productid":<?php echo $currentProductId?>},
- onComplete: function (transport) {
- jQuery(transport.responseJSON).insertAfter(".product-name");
- }
- });
- }
- function loadAttributes()
- {
- new Ajax.Request("<?php echo $this->getUrl('productview/ajax/attributes') ?>", {
- method: 'Post',
- parameters: {"productid":<?php echo $currentProductId?>},
- onComplete: function (transport) {
- jQuery(".bt-specifications-spinner").remove();
- jQuery(transport.responseText).insertAfter(".block-title.specifications");
- }
- });
- }
- function loadReviews()
- {
- new Ajax.Request("<?php echo $this->getUrl('productview/ajax/reviews') ?>", {
- method: 'Post',
- parameters: {"productid":<?php echo $currentProductId?>},
- onComplete: function (transport) {
- jQuery(".bt-review-spinner").remove();
- jQuery(transport.responseText).insertAfter(".block-title.review");
- new Ajax.Request("<?php echo $this->getUrl('productview/ajax/reviewform') ?>", {
- method: 'Post',
- parameters: {"id":<?php echo $currentProductId?>},
- onComplete: function (transport) {
- if (jQuery(".box-collateral.box-reviews dl").length)
- jQuery(transport.responseText).insertAfter(".box-collateral.box-reviews dl");
- else
- jQuery(transport.responseText).appendTo(".box-collateral.box-reviews");
- }
- });
- }
- });
- }
- function loadRelatedProducts()
- {
- new Ajax.Request("<?php echo $this->getUrl('productview/ajax/relatedproducts') ?>", {
- method: 'Post',
- parameters: {"id":<?php echo $currentProductId?>},
- onComplete: function (transport) {
- jQuery(transport.responseText).insertAfter(".tab-content.content-product");
- }
- });
- }
- function loadDescription()
- {
- new Ajax.Request("<?php echo $this->getUrl('productview/ajax/description') ?>", {
- method: 'Post',
- parameters: {"id":<?php echo $currentProductId?>},
- onComplete: function (transport) {
- jQuery(".description-data").html(transport.responseText);
- }
- });
- }
- var price = <?php echo Mage::getBlockSingleton('qxd_productview/view')->getPriceBlock($_product);?>;
- jQuery(price).prependTo(".product-info");
- function loadScrollOptions()
- {
- new Ajax.Request("<?php echo $this->getUrl('productview/ajax/scrolloptions') ?>", {
- method: 'Post',
- parameters: {"id":<?php echo $currentProductId?>},
- onComplete: function (transport) {
- jQuery(transport.responseText).insertAfter(".product-view");
- }
- });
- }
- function loadQABlock() {
- jQuery.ajax({
- url: "<?php echo $this->getUrl('extendqa/index/returnBlockCode');?>",
- beforeSend: function () {
- jQuery("#QALoading").css('display', 'block');
- },
- data: {product_id: '<?php echo $currentProductId; ?>'},
- complete: function(){
- loadBeforeAuthUrl();
- },
- success: function (result_qa) {
- jQuery("#QALoading").css('display', 'none');
- if (result_qa != "") {
- //jQuery("#rewardPLoading").css('display','none');
- jQuery("#customer_qa").append(result_qa);
- }
- else {
- jQuery("#QALoading").css('display', 'none');
- }
- }
- });
- }
- function loadBeforeAuthUrl(){
- jQuery.ajax({
- url : '<?php echo Mage::getBaseUrl() ?>extendqa/index/reloadBeforeAuthUrl',
- data: {url: '<?php echo Mage::helper("core/url")->getCurrentUrl().'#review_form_block' ?>' },
- success : function(response){},
- error: function(e){}
- });
- }
- function check_() {
- var distance = jQuery('#description').offset().top;
- if (jQuery(window).scrollTop() >= distance)
- {
- jQuery('#options-panel').slideDown('fast');
- if (jQuery('.price-as-configured').length != 0)
- {
- if (jQuery('.product-info.bundle-block .price-from').length != 0 && jQuery('.product-info.bundle-block .price-to').length != 0)
- {
- jQuery('.block-summary .price').html(
- jQuery('.product-info.bundle-block .price-box-bundle .price-from .price').text()
- + ' - ' +
- jQuery('.product-info.bundle-block .price-box-bundle .price-to .price').text()
- );
- } else { jQuery('.block-summary .price').html(jQuery('.wrapper-options .price-as-configured .price').text()); }
- }
- if (jQuery('.product-info.simple-block').length != 0)
- {
- if (jQuery('.product-info.simple-block .old-price').length != 0)
- {
- jQuery('.block-summary .price').html('<span class="scrollOldPrice">'+jQuery('.price-box .old-price .price').text()+'</span>'+" "+jQuery('.price-box .special-price .price').text() );
- }
- else { jQuery('.block-summary .price').html(jQuery('.product-info.simple-block .availability.in-stock + .price-box .price').text()); }
- }
- if (jQuery('.product-info.configurable-block').length != 0)
- {
- if (jQuery('.product-info.configurable-block .old-price').length != 0)
- {
- jQuery('.block-summary .price').html('<span class="scrollOldPrice">'+jQuery('.product-info > .price-box .old-price .price').text()+'</span>'+" "+jQuery('.product-info > .price-box .special-price .price').text() );
- jQuery('#options-panel').addClass('special-block');
- } else { jQuery('.block-summary .price').html(jQuery('.product-info.configurable-block .availability.in-stock + .price-box').text()); }
- }
- if (jQuery('.product-info.giftvoucher-block').length != 0) { jQuery('.block-summary .price').html(jQuery('.product-info.giftvoucher-block .price-box .price').text()); }
- if (jQuery('.availability.out-of-stock').length != 0)
- {
- jQuery('.block-button #btn-buy').html('Return to Top');
- if (jQuery('.product-info.configurable-block .old-price').length != 0)
- {
- jQuery('.block-summary .price').html('<span class="scrollOldPrice">'+jQuery('.product-info > .price-box .old-price .price').text()+'</span>'+" "+jQuery('.product-info > .price-box .special-price .price').text() );
- } else { jQuery('.block-summary .price').html(jQuery('.availability.out-of-stock + .price-box .price').text()); }
- }
- }
- else { jQuery('#options-panel').slideUp('fast'); }
- }
- var pri = 0;
- if (jQuery('.product-info').hasClass('bundle-block'))
- {
- if (jQuery('.bundle-block').find('.minimal-price').length != 0) { pri = jQuery('.bundle-block .minimal-price .price').text(); }
- else if (jQuery('.bundle-block').find('div.special-price').length != 0) { pri = jQuery('.bundle-block .special-price .price').text(); }
- else { pri = jQuery('.bundle-block .wrapper-options .price-as-configured .price').text(); }
- } else if (jQuery('.product-info').hasClass('simple-block'))
- {
- pri = jQuery('.simple-block .special-price').length > 0 ? jQuery('.simple-block .special-price .price').text() : jQuery('.simple-block .availability + .price-box .price').text();
- pri = pri.trim()
- } else
- {
- if (jQuery('.configurable-block').find('.special-price').length != 0)
- {
- pri = jQuery('.configurable-block .availability + .price-box .special-price .price').text();
- if (pri.indexOf("-") >= 0) {
- pri = pri.split(' - ');
- pri = pri[0];
- }
- }
- else { pri = jQuery('.configurable-block .availability + .price-box .price').text(); }
- }
- pri = pri.replace('$', '');
- if (pri < 25) { jQuery('.shipping-container').addClass('remove-shipping'); }
- //call Ajax Requests
- <?php if(!$_memcachedKeys[$currentProductId.'_reviewSummary']){ ?>loadReviewSummary(); <?php } ?>
- <?php if(!$_memcachedKeys[$currentProductId.'_description']){ ?>loadDescription(); <?php } ?>
- <?php if(!$_memcachedKeys[$currentProductId.'_attributes']){ ?>loadAttributes(); <?php } ?>
- <?php if(!$_memcachedKeys[$currentProductId.'_scrollOptions']){ ?>loadScrollOptions(); <?php } ?>
- loadQABlock();
- loadReviews();
- // loadRelatedProducts();
- check_();
- jQuery(window).scroll(function () { check_(); });
- jQuery('#btn-buy').on('click', function (e) {
- e.preventDefault();
- jQuery('html,body').animate({
- scrollTop: 0
- }, 250);
- });
- });//end document.ready
- /* add special safari and chrome rules */
- if (navigator.appVersion.indexOf("Mac") != -1) {
- jQuery('select').addClass('safari');
- jQuery('.s-arr').addClass('arrow-safari');
- if (/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())) {
- jQuery('select').addClass('saf-chrome');
- jQuery('.s-arr').addClass('saf-ch');
- }
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement