Last change
on this file since 14309 was
11741,
checked in by Henrik Bettermann, 10 years ago
|
Merge Javascript functions into one file. Add Javascript function
to calculate copyright notice year automatically.
|
File size:
449 bytes
|
Rev | Line | |
---|
[11741] | 1 | var RecaptchaOptions = { |
---|
| 2 | theme : 'white' |
---|
| 3 | }; |
---|
| 4 | |
---|
| 5 | function renderCurrentYear() { |
---|
| 6 | var mydate=new Date() |
---|
| 7 | var year=mydate.getYear() |
---|
| 8 | if (year < 1000) |
---|
| 9 | year+=1900 |
---|
| 10 | var day=mydate.getDay() |
---|
| 11 | var month=mydate.getMonth() |
---|
| 12 | var daym=mydate.getDate() |
---|
| 13 | if (daym<10) |
---|
| 14 | daym="0"+daym |
---|
| 15 | document.write(year) |
---|
| 16 | } |
---|
| 17 | |
---|
| 18 | function toggle(source, name) { |
---|
| 19 | checkboxes = document.getElementsByName(name); |
---|
| 20 | for(var i in checkboxes) |
---|
| 21 | checkboxes[i].checked = source.checked; |
---|
| 22 | } |
---|
Note: See
TracBrowser for help on using the repository browser.