User:Shrikarsan/twa1.js
Asani: Bayan wallafawa, zaku yi juyar da cache na browser din ku dan ganin sauye-sauye.
- Firefox / Safari: Rike Shift asanda kuke danna Reload, ko danna kodai Ctrl-F5 ko kuma Ctrl-R (⌘-R akan Mac)
- Google Chrome: Danna Ctrl-Shift-R (⌘-Shift-R akan Mac)
- Internet Explorer / Edge: Rike Ctrl asanda kuke danna Refresh, ko latsa Ctrl-F5
- Opera: Danna Ctrl-F5.
/*$( "#pt-notifications" ).after(
$( "<li>" ).append( $( "<a>" )
.text( "❤" )
.css( {
"background-color": "#A91101",
"color": "white",
"border-radius": "2px",
"padding": "0.15em 0.2em 0.0em",
"cursor": "pointer",
"font-weight": "bold",
"font-size": "125%",
"transition": "background-color 0.5s"
} )
.attr( "href", "/wiki/Special:Watchlist" )
)
.attr( "id", "watchlist-update-notice" )
);*/
/*function deselect(e) {
$('.pop').slideFadeToggle(function() {
e.removeClass('selected');
});
}
$(function() {
$('#contact').on('click', function() {
if($(this).hasClass('selected')) {
deselect($(this));
} else {
$(this).addClass('selected');
$('.pop').slideFadeToggle();
}
return false;
});
$('.close').on('click', function() {
deselect($('#contact'));
return false;
});
});
$.fn.slideFadeToggle = function(easing, callback) {
return this.animate({ opacity: 'toggle', height: 'toggle' }, 'fast', easing, callback);
};*/
//function myadd(){mw.util.addCSS('.messagepop1{display:block !important}');}
//function myadd2(){mw.util.addCSS('.messagepop1{display:none !important}');}
//var wikiLoveIconShri = '<li><div class="messagepop pop"><form method="post" id="new_message" action="/messages"><p><label for="email">Your email or name</label><input type="text" size="30" name="email" id="email" /></p><p><label for="body">Message</label><textarea rows="6" name="body" id="body" cols="35"></textarea></p><p><input type="submit" value="Send Message" name="commit" id="message_submit"/> or <a class="close" href="/">Cancel</a></p></form></div><a href="/contact" id="contact">Contact Us</a> <a onclick="mydofunction()">11</a><div id="PreviewShritop"></div></li>';
//var wikiLovetopIconShri = '<li><div class="messagepop pop"><form method="post" id="new_message" action="/messages"><p align="center"><a href="/wiki/Special:Wikilove" target="_blank" title="விக்கியன்பு" style="text-decoration: none;" class="wlbuttonShri wlbuttonShri-1">விக்கியன்பு</a> </p><p><a class="close" href="/">மூடுக</a></p></form></div><span id="wikilove-icon-shri" class="wikilove-icon" style="color: white;"> <a href="/contact" id="contact" style="text-decoration: none;">❤</a></span></li>';
//$('#pt-mytalk').after(wikiLovetopIconShri);
/*var wikiLovetopIconShri1 = '<li><div class="myWlShrimessagepop pop"><p align="center"><a href="/wiki/Special:Wikilove" target="_blank" title="விக்கியன்பின் மூலம் வழங்கப்பட்ட அனைத்துப் பதக்கங்களையும் உள்ளடக்கிய சிறப்புப் பக்கம்" style="text-decoration: none;" class="wlbuttonShri wlbuttonShri-1">விக்கியன்பு</a></p><p align="center"><a href="/wiki/Special:MyWikilove" target="_blank" title="எனது பதக்கங்களின் பட்டியலை உள்ளடக்கிய சிறப்புப் பக்கம்" style="text-decoration: none;" class="wlbuttonShri wlbuttonShri-2">என் விக்கியன்பு</a></p><p align="center"><a href="/wiki/User:Shrikarsan/tool" target="_blank" title="விக்கியன்பின் மூலம் வழங்கப்பட்ட அனைத்துப் பதக்கங்களையும் உள்ளடக்கிய மூலப் பட்டியற் பக்கம்" style="text-decoration: none;" class="wlbuttonShri wlbuttonShri-4">விக்கியன்பு பதிகை</a></p><p><a class="myWlShrimessageclose" style="font-size: 85%;">மூடுக</a></p></div> <span id="wikilove-icon-shri" class="wikilove-icon" style="color: white;"> <a onclick="myadd()" id="myWlShriiconPrevPath" style="text-decoration: none;">❤</a></span></li>';
$('#pt-mytalk').before(wikiLovetopIconShri1);
$(document).ready(function () {
$(".myWlShrimessagepop").hide();
$("#myWlShriiconPrevPath").click(function () {
$(".myWlShrimessagepop").fadeToggle();
});
$(".myWlShrimessageclose").click(function () {
$(".myWlShrimessagepop").fadeToggle();
});
});*/
/*$(document).click(function() {
if(this != $(".messagepop1")[0]&&this != $("#contact")[0]) {
$(".messagepop1").hide();
}
});
$(document).click(function() {
if(this != $("#contact")[0]) {
$(".messagepop1").toggle();
}
});*/
/*function myFunction1() {
var img = document.getElementById("wikilove-icon-shri");
img.setAttribute("class", "rotated-icon");
}*/