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
<script> | |
fixedHeader = () => { | |
this.fix = () => { | |
if (window.innerWidth < 768) { | |
window.onscroll = function () { | |
myFunction() | |
}; | |
var header = document.querySelector(".header"); |
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
listMethod = document.querySelector('.help-page-table'); | |
var str = []; | |
listMethod.querySelectorAll(' tr').forEach((index) => { | |
let row = []; | |
let td = index.querySelectorAll('td').forEach((index)=>{ | |
var str = index.textContent.replace(/[\n\t' ']/g,'') | |
row.push({str}) | |
}); | |
str.push(row) |
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
document.getElementById('read').addEventListener('click',file=>{ | |
readFile(document.getElementById('file')) | |
}) | |
function readFile(input) { | |
console.log(input) | |
let file = input.files[0]; | |
let reader = new FileReader(); | |
let readerText = new FileReader(); |
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
<?php | |
$str = '/ru/rensoria62 | |
/ru/rubi102 | |
/ru/milton86 | |
/ru/sorrento96 | |
/ru/samanta164 | |
/ru/citywood97 | |
/ru/casablanca249 | |
/ru/finwood236 | |
/ru/moris163 |
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
<?php | |
json_encode($array, JSON_UNESCAPED_UNICODE) |
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
RewriteCond %{THE_REQUEST} \s/+(.*?)/{2,}([^\s]*) | |
RewriteRule ^ %1/%2 [R=301,L,NE] |
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
INSERT INTO `oc_seo_url` (`store_id`, `language_id`, `query`, `keyword`) VALUES ('0', '1', 'common/home', ''); | |
INSERT INTO `oc_seo_url` (`store_id`, `language_id`, `query`, `keyword`) VALUES ('0', '1', 'account/wishlist', 'wishlist'); | |
INSERT INTO `oc_seo_url` (`store_id`, `language_id`, `query`, `keyword`) VALUES ('0', '1', 'account/account', 'my-account'); | |
INSERT INTO `oc_seo_url` (`store_id`, `language_id`, `query`, `keyword`) VALUES ('0', '1', 'checkout/cart', 'shopping-cart'); | |
INSERT INTO `oc_seo_url` (`store_id`, `language_id`, `query`, `keyword`) VALUES ('0', '1', 'checkout/checkout', 'checkout'); | |
INSERT INTO `oc_seo_url` (`store_id`, `language_id`, `query`, `keyword`) VALUES ('0', '1', 'account/login', 'login'); | |
INSERT INTO `oc_seo_url` (`store_id`, `language_id`, `query`, `keyword`) VALUES ('0', '1', 'account/logout', 'logout'); | |
INSERT INTO `oc_seo_url` (`store_id`, `language_id`, `query`, `keyword`) VALUES ('0', '1', 'account/order', 'order-history'); | |
INSERT INTO `oc_seo_url` (`store_id`, `language_i |
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
elseif ($key == 'route') { | |
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "seo_url WHERE `query` = '" . $this->db->escape($value) . "' AND store_id = '" . (int)$this->config->get('config_store_id') . "' AND language_id = '" . (int)$this->config->get('config_language_id') . "'"); | |
if ($query->num_rows && $query->row['keyword']) { | |
$url .= '/' . $query->row['keyword']; | |
unset($data[$key]); | |
} else if ($data['route'] == "common/home") { | |
$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
<?php | |
/* Telsender add action*/ | |
function meta_wc_function ($list, $order_id){ | |
$order = wc_get_order( $order_id); | |
$items = $order->get_items(); | |
$product_f = ''; | |
foreach ( $items as $item) { |
OlderNewer