mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2024-11-16 15:46:34 +01:00
121 lines
3.6 KiB
JavaScript
121 lines
3.6 KiB
JavaScript
function show_passwd() {
|
|
var x = document.getElementById('txt04');
|
|
if (x.type === "password") {
|
|
x.type = "text";
|
|
} else {
|
|
x.type = "password";
|
|
}
|
|
var y = document.getElementById('confirm_txt04');
|
|
if (y.type === "password") {
|
|
y.type = "text";
|
|
} else {
|
|
y.type = "password";
|
|
}
|
|
}
|
|
|
|
$(function() {
|
|
$( '#datepicker1' ).datepicker({ dateFormat: 'dd.mm.yy', dayNamesMin: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'], monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember']});
|
|
$( '#datepicker2' ).datepicker({ dateFormat: 'dd.mm.yy', dayNamesMin: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'], monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember']});
|
|
$( '#datepicker3' ).datepicker({ dateFormat: 'dd.mm.yy', dayNamesMin: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'], monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember']});
|
|
});
|
|
|
|
function WhichButton(event,URL){
|
|
if ('which' in event)
|
|
{
|
|
switch (event.which)
|
|
{
|
|
case 1:
|
|
if (event.ctrlKey==1)
|
|
{
|
|
var mainwindow = window.open(URL,"_self");
|
|
mainwindow.focus();
|
|
}
|
|
//alert ("Left mouse button was pressed");
|
|
break;
|
|
//case 2:
|
|
// alert ("Middle mouse button was pressed");
|
|
// break;
|
|
case 3:
|
|
var mainwindow = window.open(URL,"_self");
|
|
mainwindow.focus();
|
|
//alert ("Right mouse button was pressed");
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
//align element
|
|
function align_logo() {
|
|
var w = window.outerWidth;
|
|
walign = w / 100 * 16;
|
|
w -= walign;
|
|
document.getElementById("animate_logo_2").style.left = w + 'px';
|
|
}
|
|
|
|
$( function() {
|
|
$( "#dialog_message" ).dialog({
|
|
autoOpen: false
|
|
});
|
|
$( "#dialog_opener" ).on( "click", function() {
|
|
$( "#dialog_message" ).dialog( "open" );
|
|
});
|
|
});
|
|
|
|
function toggle_box(id) {
|
|
var popup = document.getElementById(id);
|
|
popup.classList.toggle("show");
|
|
}
|
|
|
|
|
|
|
|
//check all checkboxes
|
|
function CheckAll() {
|
|
for (var i = 0; i < document.searchform.elements.length; i++) {
|
|
if(document.searchform.elements[i].type == 'checkbox' && document.searchform.elements[i].name != 'temp' && document.searchform.elements[i].name != 'csv'){
|
|
document.searchform.elements[i].checked = !(document.searchform.elements[i].checked);
|
|
}
|
|
}
|
|
}
|
|
function CheckListAll() {
|
|
for (var i = 0; i < document.listform.elements.length; i++) {
|
|
if(document.listform.elements[i].type == 'checkbox'){
|
|
document.listform.elements[i].checked = !(document.listform.elements[i].checked);
|
|
}
|
|
}
|
|
}
|
|
function CheckEditAll() {
|
|
for (var i = 0; i < document.editform.elements.length; i++) {
|
|
if(document.editform.elements[i].type == 'checkbox'){
|
|
document.editform.elements[i].checked = !(document.editform.elements[i].checked);
|
|
}
|
|
}
|
|
}
|
|
|
|
//post submit modal box position
|
|
function modal_position(xpos,ypos) {
|
|
var elx = document.getElementById('xpos');
|
|
var ely = document.getElementById('ypos');
|
|
var myDialogX = $("#dialog-form2").offset().left - 4;
|
|
var myDialogY = $("#dialog-form2").offset().top - 44;
|
|
//alert(myDialogX + '-----' + myDialogY);
|
|
elx.value = myDialogX;
|
|
ely.value = myDialogY;
|
|
}
|
|
|
|
|
|
|
|
function go2select (select) {
|
|
var wert = select.options[select.options.selectedIndex].value;
|
|
if (select == "nothing") {
|
|
document.forms[0].reset();
|
|
document.forms[0].elements[0].blur();
|
|
return;
|
|
} else {
|
|
location.href = wert;
|
|
document.forms[0].reset();
|
|
document.forms[0].elements[0].blur();
|
|
focus();
|
|
}
|
|
}
|
|
|
|
|