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
| <span class="price"> | |
| <?php $regex = '/(от\s)?(\d+[,.]?\d+)(\s.*)/'; ?> | |
| <span class="price__price"><?php echo preg_replace($regex,'$1$2',$str)) ?></span> | |
| <span class="price__unit"><?php echo preg_replace($regex,'$3',$str)) ?></span> | |
| </span> |
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 | |
| $url = ''; | |
| function getStatus($v) | |
| { | |
| $headers = get_headers($v); | |
| if (!$headers) | |
| { |
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
| /(^\s+)(.+)(\s+$)/ |
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
| var sMyString = '<svg fill="#000000" height="36" viewBox="0 0 24 24" width="36" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>'; | |
| var oParser = new DOMParser(); | |
| var oDOM = oParser.parseFromString(sMyString, "text/xml"); | |
| // insert | |
| node.appendChild(oDOM.documentElement); |
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.fn.tooltip = function (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
| /** | |
| * TableSorter customise | |
| * hompage http://tablesorter.com/ | |
| * | |
| * verison 0.0.1 | |
| * Copyright 2016 by Rasy | |
| */ | |
| var $table = $('.table'); | |
| var $link_sort = $('.link-sort'); |
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
| /** | |
| * TableSorter customise | |
| * hompage http://tablesorter.com/ | |
| * | |
| * verison 0.0.3 | |
| * Copyright 2016 by Rasy | |
| */ | |
| var $table = $('.table'); | |
| var $tr = $table.find('tr').not(':eq(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
| /** | |
| * TableSorter customise | |
| * hompage http://tablesorter.com/ | |
| * | |
| * verison 0.0.1 | |
| * Copyright 2016 by Rasy | |
| */ | |
| var $table = $('.table'); | |
| var $link_sort = $('.link-sort'); |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>phonechange</title> | |
| </head> | |
| <body> | |
| <div class="tel ptsans"> | |
| <div class="phones" id="phone"> |
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.addEventListener('DOMContentLoaded', function () { | |
| var product = document.querySelectorAll('.block-product'), | |
| link = document.querySelectorAll('.button-detail'), | |
| target = []; | |
| for (var i = 0; i < link.length; i++) { | |
| target.push(link[i].href); | |
| } | |
| console.log(target) |