Iterkleos
Music, Events and much more
event id 1000
event id 1000
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5 , Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R ), Opera/Konqueror: press F5 , Safari: press Cmd-Opt-E .
// Temporary necisy of evil, shouldn't really be here,
// but as it is at the moment the only required file for all modules
// of twinkle, it's here.
// Shold perhaps be moved into a "twinklebase.js" file.
var
twinkleConfigExists =
false
;
if
(
userIsInGroup
(
'sysop'
)
|| twUserIsWhitelisted
(
)
)
{
twinkleConfigExists =
true
;
}
function
twUserIsWhitelisted
(
)
{
return
userIsInGroup
(
'autoconfirmed'
)
;
}
/** * Quickform is a class for creation of simple and standard forms without much * specific coding. */
QuickForm =
function
QuickForm
(
event, eventType
)
{
this
.
root
=
new
QuickForm.
element
(
{
type:
'form'
, event: event, eventType:eventType
}
)
;
var
cssNode = document.
createElement
(
'style'
)
; cssNode.
type
=
'text/css'
; cssNode.
rel
=
'stylesheet'
; cssNode.
appendChild
(
document.
createTextNode
(
""
)
)
;
// Safari bugfix
document.
getElementsByTagName
(
"head"
)
[
0
]
.
appendChild
(
cssNode
)
;
var
styles = cssNode.
sheet
? cssNode.
sheet
: cssNode.
stylesSheet
; styles.
insertRule
(
"form.quickform { width: 96%; margin:auto; padding: .5em; vertical-align: middle}"
,
0
)
; styles.
insertRule
(
"form.quickform * { font-family: sans-serif; vertical-align: middle}"
,
0
)
; styles.
insertRule
(
"form.quickform select { width: 30em; border: 1px solid gray; font-size: 1.1em}"
,
0
)
; styles.
insertRule
(
"form.quickform h5 { border-top: 1px solid gray;}"
,
0
)
; styles.
insertRule
(
"form.quickform textarea { width: 100%; height: 6em }"
,
0
)
; styles.
insertRule
(
"form.quickform .tooltipButtonContainer { position: relative; width: 100%; }"
,
0
)
; styles.
insertRule
(
"form.quickform .tooltipButton { padding: .2em; color: blue; font-weight: bold; cursor:help;}"
,
0
)
; styles.
insertRule
(
".quickformtooltip { z-index: 200; position: absolute; padding: .1em; border: 1px dotted red; background-color: Linen; font: caption; font-size: 10pt; max-width: 800px}"
,
0
)
;
}
QuickForm.
prototype
.
render
=
function
QuickFormRender
(
)
{
return
this
.
root
.
render
(
)
;
}
QuickForm.
prototype
.
append
=
function
QuickFormAppend
(
data
)
{
return
this
.
root
.
append
(
data
)
;
}
QuickForm.
element
=
function
QuickFormElement
(
data
)
{
this
.
data
= data;
this
.
childs
=
[
]
;
this
.
id
= QuickForm.
element
.
id
++;
}
QuickForm.
element
.
id
=
0
; QuickForm.
element
.
prototype
.
append
=
function
QuickFormElementAppend
(
data
)
{
if
(
data
instanceof
QuickForm.
element
)
{
var
child = data;
}
else
{
var
child =
new
QuickForm.
element
(
data
)
;
}
this
.
childs
.
push
(
child
)
;
return
child;
}
QuickForm.
element
.
prototype
.
render
=
function
QuickFormElementRender
(
)
{
var
currentNode =
this
.
compute
(
this
.
data
)
;
for
(
var
i =
0
; i <
this
.
childs
.
length
; ++i
)
{
currentNode
[
1
]
.
appendChild
(
this
.
childs
[
i
]
.
render
(
)
)
;
}
return
currentNode
[
0
]
;
}
QuickForm.
element
.
prototype
.
compute
=
function
QuickFormElementCompute
(
data
)
{
var
node;
var
childContainder =
null
;
var
label;
var
id =
'node_'
+
this
.
id
;
if
(
data.
adminonly
&& !userIsInGroup
(
'sysop'
)
)
{
// hell hack alpha
data.
type
= hidden;
}
switch
(
data.
type
)
{
case
'form'
: node = document.
createElement
(
'form'
)
; node.
setAttribute
(
'name'
,
'id'
)
; node.
className
=
"quickform"
; node.
setAttribute
(
'action'
,
'javascript:void(0);'
)
;
if
(
data.
event
)
{
node.
addEventListener
(
data.
eventType
||
'submit'
, data.
event
,
false
)
;
}
break
;
case
'select'
: node = document.
createElement
(
'div'
)
; node.
setAttribute
(
'id'
,
'div_'
+ id
)
;
if
(
data.
label
)
{
label = node.
appendChild
(
document.
createElement
(
'label'
)
)
; label.
setAttribute
(
'for'
, id
)
; label.
appendChild
(
document.
createTextNode
(
data.
label
)
)
;
}
var
select = node.
appendChild
(
document.
createElement
(
'select'
)
)
;
if
(
data.
event
)
{
select.
addEventListener
(
'change'
, data.
event
,
false
)
;
}
if
(
data.
multiple
)
{
select.
setAttribute
(
'multiple'
,
'multiple'
)
;
}
if
(
data.
size
)
{
select.
setAttribute
(
'size'
, data.
size
)
;
}
select.
setAttribute
latest news
News in brief (Holmen Courier)
Here are a selection of brief news items from this week's paper edition, and possibly a few news briefs that didn't make it in the paper.
Your Community College (Coeur d'Alene Press)
Would you drive into a new city and try to find a place without a map or directions? If you're very adventurous, you might ... but I think most agree, it wouldn't be the best, quickest or most efficient way to reach your destination.
Your Calendar - West Lake County edition (The Times of Northwest Indiana)
Find out about events going on in your community, and plan your week’s activities with The Times.
In brief: Illinois (Northwest Indiana Times)
Find events going on in your community, and plan your week’s activities with The Times. To get listed in the calendar, contact Illinois community coordinator Jennifer Pallay.
Your Calendar - West Lake County edition (Northwest Indiana Times)
Find out about events going on in your community, and plan your week’s activities with The Times. To get listed in the calendar, submit items at least 10 days in advance to community editor Melinda Moore.


