<?php
if (!empty($color_names)) echo("let arr = ".json_encode($color_names).", thisClass = 'color';\naddList(arr, thisClass);\n";
if (!empty($mech_names)) echo("let arr = ".json_encode($mech_names).", thisClass = 'mech';\naddList(arr, thisClass);\n";
if (!empty($upholstery_names)) echo("let arr = ".json_encode($upholstery_names).", thisClass = 'upholstery';\naddList(arr, thisClass);\n";
?>
wget -q -O - "my-site.ru/index.php?route=common/task/doSome" > /dev/null 2>&1
RewriteEngine On
RwriteRule ^(video/[a-z0-9_]+/series[0-9]+). $1/ [L]
Select * From date d where d.id not in(
SELECT d.id FROM date d, reservation r WHERE d.id BETWEEN r.datestart_id and r.dateend_id)
UPDATE `forumdb`.`mso_page` SET `mso_page`.`page_id_autor` ='1' WHERE `mso_page`.`page_id_author` IN ('3', '6')
UPDATE `forumdb`.`mso_page` SET `mso_page`.`page_id_autor`='1'
<html><title>Click-n-Win!</title>
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
</head>
<body>
<div style='width:200px; height:250px; border:1px solid black;'>
<div id=heading style='position:relative; width:100px; height:50px; border:1px solid red;'>Click</div>
</div>
<script>
var leftOffset = 0, topOffset = 0;
var moveHeading = function () {
if (leftOffset < $("#heading").parent().innerWidth() - $("#heading").outerWidth() && topOffset <=0) leftOffset += clicks * 3;
if (leftOffset >= $("#heading").parent().innerWidth() - $("#heading").outerWidth() && topOffset < $("#heading").parent().innerHeight() - $("#heading").outerHeight())
topOffset += clicks * 3;
if (leftOffset > 0 && topOffset >= $("#heading").parent().innerHeight() - $("#heading").outerHeight()) leftOffset -= clicks * 3;
if (leftOffset <= 0 && topOffset > 0) topOffset -= clicks * 3;
$("#heading").offset({ left: $("#heading").parent().offset().left + leftOffset, top: $("#heading").parent().offset().top + topOffset});
};
var clicks = 0, intervalId;
$("#heading").click(function () {
clicks++;
if (clicks == 1) intervalId = setInterval(moveHeading, 5);
if (clicks < 10) $("#heading").text("You clicked "+clicks);
if (clicks == 10) { clearInterval(intervalId); $("#heading").text("Congratulations! You won!"); }
});
</script>
</body>
</html>