File: version.js

package info (click to toggle)
deal 3.1.9-14
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,576 kB
  • sloc: ansic: 5,224; cpp: 4,186; tcl: 3,125; makefile: 203; javascript: 21; sh: 10
file content (23 lines) | stat: -rw-r--r-- 967 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
currentDealVersion = "3.1.9";

function noteOldVersion(version) {
  if (version != currentDealVersion) {
     element = document.getElementById("versionWarning");
     if (element != null) {
       element.innerHTML = "This is not the current version of Deal.  " +
                           "The current version of Deal is " + currentDealVersion + 
                           " which can be found at " + 
                           "<a href='http://bridge.thomasoandrews.com/deal/'>the main Deal site.</a>";
       element.style.display = "block";
     }
  }
}

function noteOldVersion(version) {
  if (version != currentDealVersion) {
     element = document.getElementByID("versionWarning");
     if (element != null) {
       element.innerHTML = "This is not the current version of Deal.  The current version of Deal is Deal " + currentDealVersion + " which can be found at <a href='http://bridge.thomasoandrews.com//deal/'>the make Deal site.</a>";
     }
  }
}