1/** 2 * Federated Login for DokuWiki - AoiHelper javascript class 3 * 4 * @copyright 2012 Aoi Karasu 5 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 6 * @link http://www.dokuwiki.org/plugin:fedauth 7 * @author Aoi Karasu <aoikarasu@gmail.com> 8 */ 9 10function jAoiHelperClass() { 11 this.qvars = new Array(); 12 this.init = function(self) { 13 var query = window.location.search.substring(1); 14 var vars = query.split("&"); 15 for (var i=0;i<vars.length;i++) { 16 var pair = vars[i].split("="); 17 self.qvars[pair[0]] = pair[1]; 18 } 19 }; 20 this.getQueryVar = function(qvar) { 21 return this.qvars[qvar]; 22 }; 23 this.init(this); 24} 25var jAoi = new jAoiHelperClass(); 26 27/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 28