v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "User:Lethosor/no dash sig.js"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(Created page with "(function(){ var o=$('label[for=wpSummary]').css('color'),t=$('label[for=wpSummary]'); $('textarea').bind('keyup keypress', function(){ if($(this).val().indexOf('--~~~...")
 
m (oops)
 
Line 1: Line 1:
 +
//<nowiki>
 
(function(){
 
(function(){
 
   var o=$('label[for=wpSummary]').css('color'),t=$('label[for=wpSummary]');
 
   var o=$('label[for=wpSummary]').css('color'),t=$('label[for=wpSummary]');
 
   $('textarea').bind('keyup keypress', function(){
 
   $('textarea').bind('keyup keypress', function(){
     if($(this).val().indexOf('--&mdash;[[User:Lethosor|<span style="color:#074">Lethosor</span>]] ([[User talk:Lethosor|<span style="color:#092">talk</span>]]) 00:35, 16 January 2014 (UTC)')+1){
+
     if($(this).val().indexOf('--~~~~')+1){
       t.addClass('error').text('--&mdash;[[User:Lethosor|<span style="color:#074">Lethosor</span>]] ([[User talk:Lethosor|<span style="color:#092">talk</span>]]) 00:35, 16 January 2014 (UTC) found!');
+
       t.addClass('error').text('--~~~~ found!');
 
     }
 
     }
 
     else{
 
     else{
Line 10: Line 11:
 
   });
 
   });
 
})();
 
})();
 +
//</nowiki>

Latest revision as of 03:47, 18 January 2014

//<nowiki>
(function(){
  var o=$('label[for=wpSummary]').css('color'),t=$('label[for=wpSummary]');
  $('textarea').bind('keyup keypress', function(){
    if($(this).val().indexOf('--~~~~')+1){
      t.addClass('error').text('--~~~~ found!');
    }
    else{
      t.removeClass('error').text('Summary');
    }
  });
})();
//</nowiki>