Umfragen
umfragen.js.php
Go to the documentation of this file.
1 <?php
2 /*
3  * untitled.php
4  *
5  * Copyright 2013 Johannes ter Haak <jojo@jojo-42>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
20  * MA 02110-1301, USA.
21  *
22  *
23  */
24 
25 ?>
26 
27 
28 function toggleShowSettings(begin , end){
29  for(var i=begin ; i<end ; i++){
30  if(document.getElementById('poll_config_element'+i).style.display == 'none' ){
31  document.getElementById('poll_config_element'+i).style.display="table-row";
32  }else{
33  document.getElementById('poll_config_element'+i).style.display="none";
34  }
35  }
36 }
37 
38 function set_matrix_radioButton(buttonID){
39  document.getElementById(buttonID).checked = true;
40 }
41 
42 
43 window.onLoadStack = Array();
44 
45 function onLoadStack_do(){
46  window.onload = function(){
47  for( i=0 ; i<window.onLoadStack.length ; i++ ){
48  window.onLoadStack[i]();
49  }
50  }
51 }
52