Файл: jscript/page_lite.js
Строк: 99
<?php
(function (d, w, c) { (w[c] = w[c] || []).push(function() { try { w.yaCounter35500105 = new Ya.Metrika({ id:35500105, clickmap:true, trackLinks:true, accurateTrackBounce:true, trackHash:true }); } catch(e) { } }); var n = d.getElementsByTagName("script")[0], s = d.createElement("script"), f = function () { n.parentNode.insertBefore(s, n); }; s.type = "text/javascript"; s.async = true; s.src = "https://mc.yandex.ru/metrika/watch.js"; if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); } })(document, window, "yandex_metrika_callbacks");
var Version = true;
function clc(txt){
var el=document.getElementById("textarea");
el.focus();
var start=el.selectionStart;
var end=el.selectionEnd;
el.value=el.value.substring(0,el.selectionStart)+
txt+
el.value.substring(el.selectionStart,el.selectionEnd)+
""+
el.value.substring(el.selectionEnd);
el.selectionStart=start+txt.length;
el.selectionEnd=el.selectionStart;
}
var Like = {
Go: function(h,id){
$('#like_'+id).load(h, {ajax: 'yes'}, function(data){
});
}
}
var Smiles = {
Open: function(){
$('#block_smiles').load('/smiles.php', {ajax: 'yes'}, function(data){
$('#block_smiles').slideDown(200);
$('#button_smiles_open').hide();
$('#button_smiles_close').show();
});
},
Close: function(){
$('#block_smiles').slideUp(200);
$('#button_smiles_open').show();
$('#button_smiles_close').hide();
}
}
var Title = {
Open: function(h){
$('#title_menu').slideDown(200);
}
}
var BlockMenu = {
Open: function(id){
$('div#block_menu_'+id).slideDown(200);
$('a#block_menu_'+id).attr('onClick', 'BlockMenu.Close('+id+'); return false');
$('img#block_menu_'+id).attr('src', '/design/img/menu_hide.png');
},
Close: function(id){
$('div#block_menu_'+id).slideUp(200);
$('a#block_menu_'+id).attr('onClick', 'BlockMenu.Open('+id+'); return false');
$('img#block_menu_'+id).attr('src', '/design/img/menu_show.png');
}
}
?>