Benutzer:Siedler6/common.js: Unterschied zwischen den Versionen

Aus SchnuppTrupp
Wechseln zu: Navigation, Suche
 
(6 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
/*var $rows = $('#table tr');
+
$(function () {
$('#search').keyup(function() {
+
$Bond=22;
    var val = $.trim($(this).val()).replace(/ +/g, ' ').toLowerCase();
+
  $('#mw-mywiki-example').html('any HTML $Bond');
   
+
}());
    $rows.show().filter(function() {
+
        var text = $(this).text().replace(/\s+/g, ' ').toLowerCase();
+
        return !~text.indexOf(val);
+
    }).hide();
+
});*/
+
 
+
function myFunction() {
+
    var txt;
+
    var person = prompt("Please enter your name:", "Harry Potter");
+
    if (person === null || person === "") {
+
        txt = "User cancelled the prompt.";
+
    } else {
+
        txt = "Hello " + person + "! How are you today?";
+
    }
+
    document.getElementById("demo").innerHTML = txt;
+
}
+

Aktuelle Version vom 1. März 2019, 01:05 Uhr

$(function () {
	$Bond=22;
  	$('#mw-mywiki-example').html('any HTML $Bond');
}());