Sixth pass at adding key files
This commit is contained in:
parent
9797a6824a
commit
fc289f2258
3
site/.vscode/settings.json
vendored
Normal file
3
site/.vscode/settings.json
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"git.ignoreLimitWarning": true
|
||||
}
|
112
site/articles/include_form.js
Normal file
112
site/articles/include_form.js
Normal file
@ -0,0 +1,112 @@
|
||||
<script language="javascript">
|
||||
$(document).ready(function(){
|
||||
$("#SelectWebsite").click(selectWebsite);
|
||||
$("#SelectFile").click(selectFile);
|
||||
$("#Link_Type").change(selectLinkType);
|
||||
$("#modify_form").submit(checkSubmit);
|
||||
});
|
||||
|
||||
function selectWebsite() {
|
||||
$(".filecontent").hide();
|
||||
$(".websitecontent").show();
|
||||
}
|
||||
|
||||
function selectFile() {
|
||||
$(".websitecontent").hide();
|
||||
$(".filecontent").show();
|
||||
}
|
||||
|
||||
function selectLinkType() {
|
||||
var type = $("#Link_Type").val();
|
||||
|
||||
if (type == 'article') {
|
||||
$("#article_photo_form").show();
|
||||
$("#video_form").hide();
|
||||
|
||||
for (i = 1; i <= 16 ; i++) {
|
||||
$("#article" + i).show();
|
||||
$("#photo" + i).hide();
|
||||
}
|
||||
|
||||
$("#article_has_video").show();
|
||||
$("#photo_body").hide();
|
||||
$("#photo_extra").hide();
|
||||
$("#photo_large_pic").hide();
|
||||
} else if (type == 'photo') {
|
||||
$("#article_photo_form").show();
|
||||
$("#video_form").hide();
|
||||
|
||||
for (i = 1; i <= 16 ; i++) {
|
||||
$("#article" + i).hide();
|
||||
$("#photo" + i).show();
|
||||
}
|
||||
|
||||
$("#article_has_video").hide();
|
||||
$("#photo_body").show();
|
||||
$("#photo_extra").show();
|
||||
$("#photo_large_pic").show();
|
||||
} else {
|
||||
$("#article_photo_form").hide();
|
||||
$("#photo_body").show();
|
||||
$("#video_form").show();
|
||||
}
|
||||
}
|
||||
|
||||
function checkSubmit() {
|
||||
var type = $("#Link_Type").val();
|
||||
|
||||
if (type == 'article') {
|
||||
VideoData(0);
|
||||
} else if (type == 'photo') {
|
||||
VideoData(0);
|
||||
$("#Paragraph1").val($("#Main_Body").val());
|
||||
} else if (type == 'video') {
|
||||
if ($('#SelectWebsite').is(':checked')) {
|
||||
if (! checkUrlVal("#URL") ||
|
||||
$("#Image_Path").val() == "") {
|
||||
if (! confirm("You haven't entered all the information. The video link may not display properly. Continue?")) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
VideoData(1);
|
||||
} else {
|
||||
if ($("#File_Path").val() == "") {
|
||||
if (! confirm("You haven't entered all the information. The video link may not display properly. Continue?")) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
VideoData(2);
|
||||
}
|
||||
$("#Paragraph1").val($("#Main_Body").val());
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function VideoData(index) {
|
||||
if (index != 1) {
|
||||
$("#URL").val("http://");
|
||||
$("#Image_Path").val("");
|
||||
} else {
|
||||
$("#admin_convert_video").attr('checked', true);
|
||||
}
|
||||
|
||||
if (index != 2) {
|
||||
$("#File_Path").val("");
|
||||
}
|
||||
|
||||
if (index == 0) {
|
||||
$("#admin_convert_video").attr('checked', false);
|
||||
}
|
||||
}
|
||||
|
||||
function checkUrlVal(id_str) {
|
||||
if ($(id_str).val() == '' || $(id_str).val() == "http://") {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
</script>
|
123
site/coaches/javascript.js
Normal file
123
site/coaches/javascript.js
Normal file
@ -0,0 +1,123 @@
|
||||
function validateEmail(emailAddress) {
|
||||
var match = /^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*$/.test(emailAddress);
|
||||
return match;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function CheckRegisterForm(RegisterForm)
|
||||
{
|
||||
if (RegisterForm.username.value == "" ) { alert( "Please choose a username!" );
|
||||
RegisterForm.username.focus();
|
||||
return false; }
|
||||
|
||||
if (RegisterForm.password.value == "" ) { alert( "Please choose a password!" );
|
||||
RegisterForm.password.focus();
|
||||
return false; }
|
||||
|
||||
if (RegisterForm.email.value == "" ) { alert( "Please enter your email address." );
|
||||
RegisterForm.email.focus();
|
||||
return false; }
|
||||
|
||||
checkEmail = RegisterForm.email.value
|
||||
if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.')))
|
||||
{alert("Your emails address is invalid!.");
|
||||
RegisterForm.email.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
// return true;
|
||||
}
|
||||
|
||||
|
||||
function CheckTellForm(tellform)
|
||||
{
|
||||
if (tellform.name.value == "" ) { alert( "ÇáÑÌÇÁ ÃÏÎá ÇáÅÓã ÈÇáßÇãá" );
|
||||
tellform.name.focus();
|
||||
return false; }
|
||||
|
||||
if (tellform.email.value == "" ) { alert( "ÃÏÎá ÇáÈÑíÏ ÇáÅáßÊÑæäí" );
|
||||
tellform.email.focus();
|
||||
return false; }
|
||||
|
||||
checkEmail = tellform.email.value
|
||||
if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.')))
|
||||
{alert("ÇáÈÑíÏ ÇáÅáßÊÑæäí ÎØÃ!.");
|
||||
tellform.email.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
if (tellform.fname.value == "" ) { alert( "ÃÏÎá ÅÓã ÕÏíÞß" );
|
||||
tellform.fname.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
|
||||
if (tellform.femail.value == "" ) { alert( "ÃÏÎá ÇáÈÑíÏ ÇáÇáßÊÑæäí ÇáÎÇÕ ÈÕÏíÞß" );
|
||||
tellform.femail.focus();
|
||||
return false; }
|
||||
|
||||
checkEmail = tellform.femail.value
|
||||
if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.')))
|
||||
{alert("ÇáÈÑíÏ ÇáÅáßÊÑæäí ÎØÃ!.");
|
||||
tellform.femail.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
|
||||
// return true;
|
||||
}
|
||||
|
||||
|
||||
var newwindow;
|
||||
function pop(url)
|
||||
{
|
||||
newwindow=window.open(url,'poppage', 'toolbars=0, scrollbars=1, location=0, statusbars=1, menubars=0, resizable=0, width=500, height=400');
|
||||
if (window.focus) {newwindow.focus()}
|
||||
}
|
||||
|
||||
function popimg(url)
|
||||
{
|
||||
newwindow=window.open(url,'name','height=500,width=650,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
|
||||
if (window.focus) {newwindow.focus()}
|
||||
}
|
||||
|
||||
|
||||
|
||||
<!-- ;
|
||||
var newwindow;
|
||||
var wheight = 0, wwidth = 0;
|
||||
function viewimg(url, title, iwidth, iheight, colour) {
|
||||
var pwidth, pheight;
|
||||
|
||||
if ( !newwindow || newwindow.closed ) {
|
||||
pwidth=iwidth+30;
|
||||
pheight=iheight+30;
|
||||
newwindow=window.open('','htmlname','width=' + pwidth +',height=' +pheight + ',resizable=1,top=50,left=10');
|
||||
wheight=iheight;
|
||||
wwidth=iwidth;
|
||||
}
|
||||
|
||||
if (wheight!=iheight || wwidth!=iwidth ) {
|
||||
pwidth=iwidth+30;
|
||||
pheight=iheight+60;
|
||||
newwindow.resizeTo(pwidth, pheight);
|
||||
wheight=iheight;
|
||||
wwidth=iwidth;
|
||||
}
|
||||
|
||||
newwindow.document.clear();
|
||||
newwindow.focus();
|
||||
newwindow.document.writeln('<html> <head> <title>' + title + '<\/title> <\/head> <body bgcolor= \"' + colour + '\"> <center>');
|
||||
newwindow.document.writeln('<a titl="ÅÖÛØ ÇáÕæÑÉ ááÅÛáÇÞ" href="javascript:window.close();"><img src=' + url + ' border=0></a>');
|
||||
newwindow.document.writeln('<\/center> <\/body> <\/html>');
|
||||
newwindow.document.close();
|
||||
newwindow.focus();
|
||||
}
|
||||
|
||||
// Routines to tidy up popup windows when page is left
|
||||
// Call with an onUnload="tidy5()" in body tag
|
||||
|
||||
function tidy5() {
|
||||
if (newwindow && !newwindow.closed) { newwindow.close(); }
|
||||
}
|
3271
site/coaches/rating/scripts/prototype.js
vendored
Normal file
3271
site/coaches/rating/scripts/prototype.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
54
site/coaches/rating/scripts/rating.js
Normal file
54
site/coaches/rating/scripts/rating.js
Normal file
@ -0,0 +1,54 @@
|
||||
function RateItem(varParentId, varItemId, varRating)
|
||||
{
|
||||
var elementId = varParentId+"_"+varItemId;
|
||||
var varOrigClassName = document.getElementById(elementId).className;
|
||||
|
||||
// Retrieve Ajax Feeds
|
||||
new Ajax.Request('ajax.rate.item.php',
|
||||
{
|
||||
method: 'post',
|
||||
parameters: {parent: varParentId, item: varItemId, rating: varRating, classes: varOrigClassName},
|
||||
onSuccess: ReloadRating,
|
||||
onFailure: RatingError
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
function ReadNameValuePairs(nameValuePair)
|
||||
{
|
||||
var trimspaces = /(\s)+/;
|
||||
var returnData = new Array();
|
||||
var pairs = nameValuePair.split('&');
|
||||
|
||||
for (var i = 0; i < pairs.length; i++)
|
||||
{
|
||||
var pair = pairs[i].split('=');
|
||||
returnData[pair[0].replace(trimspaces, "")] = pair[1];
|
||||
}
|
||||
|
||||
return returnData;
|
||||
}
|
||||
|
||||
function ReloadRating(requestObj, jsonObj)
|
||||
{
|
||||
var newlines = /(\r\n|\r|\n)/;
|
||||
var returnData = ReadNameValuePairs(requestObj.responseText.replace(newlines, ""));
|
||||
var elementId = returnData['parent']+"_"+returnData['item'];
|
||||
|
||||
document.getElementById(elementId).className = returnData['classes'];
|
||||
var liObj = document.getElementById(elementId).getElementsByTagName('a');
|
||||
|
||||
for (var i = 0; i < liObj.length; i++)
|
||||
{
|
||||
liObj[i].onclick = function(){};
|
||||
}
|
||||
document.getElementById(returnData['parent']).className = returnData['parentClass'];
|
||||
}
|
||||
|
||||
function RatingError()
|
||||
{
|
||||
|
||||
//alert ("Error");
|
||||
|
||||
}
|
3271
site/fitters/class/rating/scripts/prototype.js
vendored
Normal file
3271
site/fitters/class/rating/scripts/prototype.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
54
site/fitters/class/rating/scripts/rating.js
Normal file
54
site/fitters/class/rating/scripts/rating.js
Normal file
@ -0,0 +1,54 @@
|
||||
function RateItem(varParentId, varItemId, varRating)
|
||||
{
|
||||
var elementId = varParentId+"_"+varItemId;
|
||||
var varOrigClassName = document.getElementById(elementId).className;
|
||||
|
||||
// Retrieve Ajax Feeds
|
||||
new Ajax.Request('ajax.rate.item.php',
|
||||
{
|
||||
method: 'post',
|
||||
parameters: {parent: varParentId, item: varItemId, rating: varRating, classes: varOrigClassName},
|
||||
onSuccess: ReloadRating,
|
||||
onFailure: RatingError
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
function ReadNameValuePairs(nameValuePair)
|
||||
{
|
||||
var trimspaces = /(\s)+/;
|
||||
var returnData = new Array();
|
||||
var pairs = nameValuePair.split('&');
|
||||
|
||||
for (var i = 0; i < pairs.length; i++)
|
||||
{
|
||||
var pair = pairs[i].split('=');
|
||||
returnData[pair[0].replace(trimspaces, "")] = pair[1];
|
||||
}
|
||||
|
||||
return returnData;
|
||||
}
|
||||
|
||||
function ReloadRating(requestObj, jsonObj)
|
||||
{
|
||||
var newlines = /(\r\n|\r|\n)/;
|
||||
var returnData = ReadNameValuePairs(requestObj.responseText.replace(newlines, ""));
|
||||
var elementId = returnData['parent']+"_"+returnData['item'];
|
||||
|
||||
document.getElementById(elementId).className = returnData['classes'];
|
||||
var liObj = document.getElementById(elementId).getElementsByTagName('a');
|
||||
|
||||
for (var i = 0; i < liObj.length; i++)
|
||||
{
|
||||
liObj[i].onclick = function(){};
|
||||
}
|
||||
document.getElementById(returnData['parent']).className = returnData['parentClass'];
|
||||
}
|
||||
|
||||
function RatingError()
|
||||
{
|
||||
|
||||
//alert ("Error");
|
||||
|
||||
}
|
21
site/fitters/gmaps_allfitter.js
Normal file
21
site/fitters/gmaps_allfitter.js
Normal file
@ -0,0 +1,21 @@
|
||||
<script type="text/javascript" src="http://www.slowtwitch.com/googlemaps/util.js"></script>
|
||||
<script type="text/javascript">
|
||||
function initializeFitterMap() {
|
||||
//alert("mapping!");
|
||||
var myLatlng = new google.maps.LatLng(40, -100);
|
||||
var myOptions = {
|
||||
zoom: 3,
|
||||
center: myLatlng,
|
||||
mapTypeId: google.maps.MapTypeId.ROADMAP
|
||||
}
|
||||
var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
|
||||
downloadUrl("http://www.slowtwitch.com/googlemaps/phpsqlajax_genxml2.php", function(data) {
|
||||
var markers = data.documentElement.getElementsByTagName("marker");
|
||||
for (var i = 0; i < markers.length; i++) {
|
||||
var latlng = new google.maps.LatLng(parseFloat(markers[i].getAttribute("lat")),
|
||||
parseFloat(markers[i].getAttribute("lng")));
|
||||
var marker = new google.maps.Marker({position: latlng, map: map, title: markers[i].getAttribute("name")});
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
123
site/fitters/javascript.js
Normal file
123
site/fitters/javascript.js
Normal file
@ -0,0 +1,123 @@
|
||||
function validateEmail(emailAddress) {
|
||||
var match = /^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*$/.test(emailAddress);
|
||||
return match;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function CheckRegisterForm(RegisterForm)
|
||||
{
|
||||
if (RegisterForm.username.value == "" ) { alert( "Please choose a username!" );
|
||||
RegisterForm.username.focus();
|
||||
return false; }
|
||||
|
||||
if (RegisterForm.password.value == "" ) { alert( "Please choose a password!" );
|
||||
RegisterForm.password.focus();
|
||||
return false; }
|
||||
|
||||
if (RegisterForm.email.value == "" ) { alert( "Please enter your email address." );
|
||||
RegisterForm.email.focus();
|
||||
return false; }
|
||||
|
||||
checkEmail = RegisterForm.email.value
|
||||
if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.')))
|
||||
{alert("Your emails address is invalid!.");
|
||||
RegisterForm.email.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
// return true;
|
||||
}
|
||||
|
||||
|
||||
function CheckTellForm(tellform)
|
||||
{
|
||||
if (tellform.name.value == "" ) { alert( "ÇáÑÌÇÁ ÃÏÎá ÇáÅÓã ÈÇáßÇãá" );
|
||||
tellform.name.focus();
|
||||
return false; }
|
||||
|
||||
if (tellform.email.value == "" ) { alert( "ÃÏÎá ÇáÈÑíÏ ÇáÅáßÊÑæäí" );
|
||||
tellform.email.focus();
|
||||
return false; }
|
||||
|
||||
checkEmail = tellform.email.value
|
||||
if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.')))
|
||||
{alert("ÇáÈÑíÏ ÇáÅáßÊÑæäí ÎØÃ!.");
|
||||
tellform.email.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
if (tellform.fname.value == "" ) { alert( "ÃÏÎá ÅÓã ÕÏíÞß" );
|
||||
tellform.fname.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
|
||||
if (tellform.femail.value == "" ) { alert( "ÃÏÎá ÇáÈÑíÏ ÇáÇáßÊÑæäí ÇáÎÇÕ ÈÕÏíÞß" );
|
||||
tellform.femail.focus();
|
||||
return false; }
|
||||
|
||||
checkEmail = tellform.femail.value
|
||||
if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.')))
|
||||
{alert("ÇáÈÑíÏ ÇáÅáßÊÑæäí ÎØÃ!.");
|
||||
tellform.femail.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
|
||||
// return true;
|
||||
}
|
||||
|
||||
|
||||
var newwindow;
|
||||
function pop(url)
|
||||
{
|
||||
newwindow=window.open(url,'poppage', 'toolbars=0, scrollbars=1, location=0, statusbars=1, menubars=0, resizable=0, width=500, height=400');
|
||||
if (window.focus) {newwindow.focus()}
|
||||
}
|
||||
|
||||
function popimg(url)
|
||||
{
|
||||
newwindow=window.open(url,'name','height=500,width=650,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
|
||||
if (window.focus) {newwindow.focus()}
|
||||
}
|
||||
|
||||
|
||||
|
||||
<!-- ;
|
||||
var newwindow;
|
||||
var wheight = 0, wwidth = 0;
|
||||
function viewimg(url, title, iwidth, iheight, colour) {
|
||||
var pwidth, pheight;
|
||||
|
||||
if ( !newwindow || newwindow.closed ) {
|
||||
pwidth=iwidth+30;
|
||||
pheight=iheight+30;
|
||||
newwindow=window.open('','htmlname','width=' + pwidth +',height=' +pheight + ',resizable=1,top=50,left=10');
|
||||
wheight=iheight;
|
||||
wwidth=iwidth;
|
||||
}
|
||||
|
||||
if (wheight!=iheight || wwidth!=iwidth ) {
|
||||
pwidth=iwidth+30;
|
||||
pheight=iheight+60;
|
||||
newwindow.resizeTo(pwidth, pheight);
|
||||
wheight=iheight;
|
||||
wwidth=iwidth;
|
||||
}
|
||||
|
||||
newwindow.document.clear();
|
||||
newwindow.focus();
|
||||
newwindow.document.writeln('<html> <head> <title>' + title + '<\/title> <\/head> <body bgcolor= \"' + colour + '\"> <center>');
|
||||
newwindow.document.writeln('<a titl="ÅÖÛØ ÇáÕæÑÉ ááÅÛáÇÞ" href="javascript:window.close();"><img src=' + url + ' border=0></a>');
|
||||
newwindow.document.writeln('<\/center> <\/body> <\/html>');
|
||||
newwindow.document.close();
|
||||
newwindow.focus();
|
||||
}
|
||||
|
||||
// Routines to tidy up popup windows when page is left
|
||||
// Call with an onUnload="tidy5()" in body tag
|
||||
|
||||
function tidy5() {
|
||||
if (newwindow && !newwindow.closed) { newwindow.close(); }
|
||||
}
|
3271
site/fitters/rating/scripts/prototype.js
vendored
Normal file
3271
site/fitters/rating/scripts/prototype.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
54
site/fitters/rating/scripts/rating.js
Normal file
54
site/fitters/rating/scripts/rating.js
Normal file
@ -0,0 +1,54 @@
|
||||
function RateItem(varParentId, varItemId, varRating)
|
||||
{
|
||||
var elementId = varParentId+"_"+varItemId;
|
||||
var varOrigClassName = document.getElementById(elementId).className;
|
||||
|
||||
// Retrieve Ajax Feeds
|
||||
new Ajax.Request('ajax.rate.item.php',
|
||||
{
|
||||
method: 'post',
|
||||
parameters: {parent: varParentId, item: varItemId, rating: varRating, classes: varOrigClassName},
|
||||
onSuccess: ReloadRating,
|
||||
onFailure: RatingError
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
function ReadNameValuePairs(nameValuePair)
|
||||
{
|
||||
var trimspaces = /(\s)+/;
|
||||
var returnData = new Array();
|
||||
var pairs = nameValuePair.split('&');
|
||||
|
||||
for (var i = 0; i < pairs.length; i++)
|
||||
{
|
||||
var pair = pairs[i].split('=');
|
||||
returnData[pair[0].replace(trimspaces, "")] = pair[1];
|
||||
}
|
||||
|
||||
return returnData;
|
||||
}
|
||||
|
||||
function ReloadRating(requestObj, jsonObj)
|
||||
{
|
||||
var newlines = /(\r\n|\r|\n)/;
|
||||
var returnData = ReadNameValuePairs(requestObj.responseText.replace(newlines, ""));
|
||||
var elementId = returnData['parent']+"_"+returnData['item'];
|
||||
|
||||
document.getElementById(elementId).className = returnData['classes'];
|
||||
var liObj = document.getElementById(elementId).getElementsByTagName('a');
|
||||
|
||||
for (var i = 0; i < liObj.length; i++)
|
||||
{
|
||||
liObj[i].onclick = function(){};
|
||||
}
|
||||
document.getElementById(returnData['parent']).className = returnData['parentClass'];
|
||||
}
|
||||
|
||||
function RatingError()
|
||||
{
|
||||
|
||||
//alert ("Error");
|
||||
|
||||
}
|
7
site/glist/.htaccess
Normal file
7
site/glist/.htaccess
Normal file
@ -0,0 +1,7 @@
|
||||
AuthGroupFile /dev/null
|
||||
AuthName Protected
|
||||
AuthType Basic
|
||||
|
||||
deny from all
|
||||
|
||||
|
21
site/googlemaps/gmaps_all.js
Normal file
21
site/googlemaps/gmaps_all.js
Normal file
@ -0,0 +1,21 @@
|
||||
<script type="text/javascript" src="http://www.slowtwitch.com/googlemaps/util.js"></script>
|
||||
<script type="text/javascript">
|
||||
function initializeAllMap(myURL) {
|
||||
//alert("mapping!");
|
||||
var myLatlng = new google.maps.LatLng(40, -100);
|
||||
var myOptions = {
|
||||
zoom: 3,
|
||||
center: myLatlng,
|
||||
mapTypeId: google.maps.MapTypeId.ROADMAP
|
||||
}
|
||||
var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
|
||||
downloadUrl(myURL, function(data) {
|
||||
var markers = data.documentElement.getElementsByTagName("marker");
|
||||
for (var i = 0; i < markers.length; i++) {
|
||||
var latlng = new google.maps.LatLng(parseFloat(markers[i].getAttribute("lat")),
|
||||
parseFloat(markers[i].getAttribute("lng")));
|
||||
var marker = new google.maps.Marker({position: latlng, map: map, title: markers[i].getAttribute("name")});
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
1
site/googlemaps/json/coach.json
Normal file
1
site/googlemaps/json/coach.json
Normal file
File diff suppressed because one or more lines are too long
1
site/googlemaps/json/fitter.json
Normal file
1
site/googlemaps/json/fitter.json
Normal file
File diff suppressed because one or more lines are too long
BIN
site/googlemaps/json/json.zip
Normal file
BIN
site/googlemaps/json/json.zip
Normal file
Binary file not shown.
1
site/googlemaps/json/race.json
Normal file
1
site/googlemaps/json/race.json
Normal file
File diff suppressed because one or more lines are too long
1
site/googlemaps/json/retailer.json
Normal file
1
site/googlemaps/json/retailer.json
Normal file
File diff suppressed because one or more lines are too long
1
site/googlemaps/json/roadshow.json
Normal file
1
site/googlemaps/json/roadshow.json
Normal file
@ -0,0 +1 @@
|
||||
[{"category":"roadshow","name":"Bonzai Sports","lat":38.904300689697,"lng":-77.266296386719,"info1":"204-D Mill Street","info2":"","info3":"Vienna","info4":"Virginia","phone":"(703) 281-2104","email":"sales@tribonzai.com","website":"http:\/\/tribonzai.com","details":"\/roadshow\/individual.php?roadshow_id=45"}]
|
1
site/googlemaps/json/runshop.json
Normal file
1
site/googlemaps/json/runshop.json
Normal file
File diff suppressed because one or more lines are too long
1
site/googlemaps/json/triclub.json
Normal file
1
site/googlemaps/json/triclub.json
Normal file
File diff suppressed because one or more lines are too long
84
site/googlemaps/util.js
Normal file
84
site/googlemaps/util.js
Normal file
@ -0,0 +1,84 @@
|
||||
/**
|
||||
* Returns an XMLHttp instance to use for asynchronous
|
||||
* downloading. This method will never throw an exception, but will
|
||||
* return NULL if the browser does not support XmlHttp for any reason.
|
||||
* @return {XMLHttpRequest|Null}
|
||||
*/
|
||||
function createXmlHttpRequest() {
|
||||
try {
|
||||
if (typeof ActiveXObject != 'undefined') {
|
||||
return new ActiveXObject('Microsoft.XMLHTTP');
|
||||
} else if (window["XMLHttpRequest"]) {
|
||||
return new XMLHttpRequest();
|
||||
}
|
||||
} catch (e) {
|
||||
changeStatus(e);
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
/**
|
||||
* This functions wraps XMLHttpRequest open/send function.
|
||||
* It lets you specify a URL and will call the callback if
|
||||
* it gets a status code of 200.
|
||||
* @param {String} url The URL to retrieve
|
||||
* @param {Function} callback The function to call once retrieved.
|
||||
*/
|
||||
function downloadUrl(url, callback) {
|
||||
var status = -1;
|
||||
var request = createXmlHttpRequest();
|
||||
if (!request) {
|
||||
return false;
|
||||
}
|
||||
|
||||
request.onreadystatechange = function() {
|
||||
if (request.readyState == 4) {
|
||||
try {
|
||||
status = request.status;
|
||||
} catch (e) {
|
||||
// Usually indicates request timed out in FF.
|
||||
}
|
||||
if (status == 200) {
|
||||
callback(request.responseXML, request.status);
|
||||
request.onreadystatechange = function() {};
|
||||
}
|
||||
}
|
||||
}
|
||||
request.open('GET', url, true);
|
||||
try {
|
||||
request.send(null);
|
||||
} catch (e) {
|
||||
changeStatus(e);
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Parses the given XML string and returns the parsed document in a
|
||||
* DOM data structure. This function will return an empty DOM node if
|
||||
* XML parsing is not supported in this browser.
|
||||
* @param {string} str XML string.
|
||||
* @return {Element|Document} DOM.
|
||||
*/
|
||||
function xmlParse(str) {
|
||||
if (typeof ActiveXObject != 'undefined' && typeof GetObject != 'undefined') {
|
||||
var doc = new ActiveXObject('Microsoft.XMLDOM');
|
||||
doc.loadXML(str);
|
||||
return doc;
|
||||
}
|
||||
|
||||
if (typeof DOMParser != 'undefined') {
|
||||
return (new DOMParser()).parseFromString(str, 'text/xml');
|
||||
}
|
||||
|
||||
return createElement('div', null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Appends a JavaScript file to the page.
|
||||
* @param {string} url
|
||||
*/
|
||||
function downloadScript(url) {
|
||||
var script = document.createElement('script');
|
||||
script.src = url;
|
||||
document.body.appendChild(script);
|
||||
}
|
123
site/racecalendar/javascript.js
Executable file
123
site/racecalendar/javascript.js
Executable file
@ -0,0 +1,123 @@
|
||||
function validateEmail(emailAddress) {
|
||||
var match = /^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*$/.test(emailAddress);
|
||||
return match;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function CheckRegisterForm(RegisterForm)
|
||||
{
|
||||
if (RegisterForm.username.value == "" ) { alert( "Please choose a username!" );
|
||||
RegisterForm.username.focus();
|
||||
return false; }
|
||||
|
||||
if (RegisterForm.password.value == "" ) { alert( "Please choose a password!" );
|
||||
RegisterForm.password.focus();
|
||||
return false; }
|
||||
|
||||
if (RegisterForm.email.value == "" ) { alert( "Please enter your email address." );
|
||||
RegisterForm.email.focus();
|
||||
return false; }
|
||||
|
||||
checkEmail = RegisterForm.email.value
|
||||
if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.')))
|
||||
{alert("Your emails address is invalid!.");
|
||||
RegisterForm.email.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
// return true;
|
||||
}
|
||||
|
||||
|
||||
function CheckTellForm(tellform)
|
||||
{
|
||||
if (tellform.name.value == "" ) { alert( "ÇáÑÌÇÁ ÃÏÎá ÇáÅÓã ÈÇáßÇãá" );
|
||||
tellform.name.focus();
|
||||
return false; }
|
||||
|
||||
if (tellform.email.value == "" ) { alert( "ÃÏÎá ÇáÈÑíÏ ÇáÅáßÊÑæäí" );
|
||||
tellform.email.focus();
|
||||
return false; }
|
||||
|
||||
checkEmail = tellform.email.value
|
||||
if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.')))
|
||||
{alert("ÇáÈÑíÏ ÇáÅáßÊÑæäí ÎØÃ!.");
|
||||
tellform.email.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
if (tellform.fname.value == "" ) { alert( "ÃÏÎá ÅÓã ÕÏíÞß" );
|
||||
tellform.fname.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
|
||||
if (tellform.femail.value == "" ) { alert( "ÃÏÎá ÇáÈÑíÏ ÇáÇáßÊÑæäí ÇáÎÇÕ ÈÕÏíÞß" );
|
||||
tellform.femail.focus();
|
||||
return false; }
|
||||
|
||||
checkEmail = tellform.femail.value
|
||||
if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.')))
|
||||
{alert("ÇáÈÑíÏ ÇáÅáßÊÑæäí ÎØÃ!.");
|
||||
tellform.femail.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
|
||||
// return true;
|
||||
}
|
||||
|
||||
|
||||
var newwindow;
|
||||
function pop(url)
|
||||
{
|
||||
newwindow=window.open(url,'poppage', 'toolbars=0, scrollbars=1, location=0, statusbars=1, menubars=0, resizable=0, width=500, height=400');
|
||||
if (window.focus) {newwindow.focus()}
|
||||
}
|
||||
|
||||
function popimg(url)
|
||||
{
|
||||
newwindow=window.open(url,'name','height=500,width=650,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
|
||||
if (window.focus) {newwindow.focus()}
|
||||
}
|
||||
|
||||
|
||||
|
||||
<!-- ;
|
||||
var newwindow;
|
||||
var wheight = 0, wwidth = 0;
|
||||
function viewimg(url, title, iwidth, iheight, colour) {
|
||||
var pwidth, pheight;
|
||||
|
||||
if ( !newwindow || newwindow.closed ) {
|
||||
pwidth=iwidth+30;
|
||||
pheight=iheight+30;
|
||||
newwindow=window.open('','htmlname','width=' + pwidth +',height=' +pheight + ',resizable=1,top=50,left=10');
|
||||
wheight=iheight;
|
||||
wwidth=iwidth;
|
||||
}
|
||||
|
||||
if (wheight!=iheight || wwidth!=iwidth ) {
|
||||
pwidth=iwidth+30;
|
||||
pheight=iheight+60;
|
||||
newwindow.resizeTo(pwidth, pheight);
|
||||
wheight=iheight;
|
||||
wwidth=iwidth;
|
||||
}
|
||||
|
||||
newwindow.document.clear();
|
||||
newwindow.focus();
|
||||
newwindow.document.writeln('<html> <head> <title>' + title + '<\/title> <\/head> <body bgcolor= \"' + colour + '\"> <center>');
|
||||
newwindow.document.writeln('<a titl="ÅÖÛØ ÇáÕæÑÉ ááÅÛáÇÞ" href="javascript:window.close();"><img src=' + url + ' border=0></a>');
|
||||
newwindow.document.writeln('<\/center> <\/body> <\/html>');
|
||||
newwindow.document.close();
|
||||
newwindow.focus();
|
||||
}
|
||||
|
||||
// Routines to tidy up popup windows when page is left
|
||||
// Call with an onUnload="tidy5()" in body tag
|
||||
|
||||
function tidy5() {
|
||||
if (newwindow && !newwindow.closed) { newwindow.close(); }
|
||||
}
|
5
site/racecalendar/old.htaccess
Normal file
5
site/racecalendar/old.htaccess
Normal file
@ -0,0 +1,5 @@
|
||||
Header set Access-Control-Allow-Origin "https://www.slowtwitch.com"
|
||||
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTP_HOST} calendar.slowtwitch.com [NC]
|
||||
RewriteRule ^(.*)$ https://www.slowtwitch.com/calendar$1 [R=301,L]
|
3271
site/racecalendar/rating/scripts/prototype.js
vendored
Normal file
3271
site/racecalendar/rating/scripts/prototype.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
54
site/racecalendar/rating/scripts/rating.js
Normal file
54
site/racecalendar/rating/scripts/rating.js
Normal file
@ -0,0 +1,54 @@
|
||||
function RateItem(varParentId, varItemId, varRating)
|
||||
{
|
||||
var elementId = varParentId+"_"+varItemId;
|
||||
var varOrigClassName = document.getElementById(elementId).className;
|
||||
|
||||
// Retrieve Ajax Feeds
|
||||
new Ajax.Request('ajax.rate.item.php',
|
||||
{
|
||||
method: 'post',
|
||||
parameters: {parent: varParentId, item: varItemId, rating: varRating, classes: varOrigClassName},
|
||||
onSuccess: ReloadRating,
|
||||
onFailure: RatingError
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
function ReadNameValuePairs(nameValuePair)
|
||||
{
|
||||
var trimspaces = /(\s)+/;
|
||||
var returnData = new Array();
|
||||
var pairs = nameValuePair.split('&');
|
||||
|
||||
for (var i = 0; i < pairs.length; i++)
|
||||
{
|
||||
var pair = pairs[i].split('=');
|
||||
returnData[pair[0].replace(trimspaces, "")] = pair[1];
|
||||
}
|
||||
|
||||
return returnData;
|
||||
}
|
||||
|
||||
function ReloadRating(requestObj, jsonObj)
|
||||
{
|
||||
var newlines = /(\r\n|\r|\n)/;
|
||||
var returnData = ReadNameValuePairs(requestObj.responseText.replace(newlines, ""));
|
||||
var elementId = returnData['parent']+"_"+returnData['item'];
|
||||
|
||||
document.getElementById(elementId).className = returnData['classes'];
|
||||
var liObj = document.getElementById(elementId).getElementsByTagName('a');
|
||||
|
||||
for (var i = 0; i < liObj.length; i++)
|
||||
{
|
||||
liObj[i].onclick = function(){};
|
||||
}
|
||||
document.getElementById(returnData['parent']).className = returnData['parentClass'];
|
||||
}
|
||||
|
||||
function RatingError()
|
||||
{
|
||||
|
||||
//alert ("Error");
|
||||
|
||||
}
|
123
site/retailers/javascript.js
Normal file
123
site/retailers/javascript.js
Normal file
@ -0,0 +1,123 @@
|
||||
function validateEmail(emailAddress) {
|
||||
var match = /^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*$/.test(emailAddress);
|
||||
return match;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function CheckRegisterForm(RegisterForm)
|
||||
{
|
||||
if (RegisterForm.username.value == "" ) { alert( "Please choose a username!" );
|
||||
RegisterForm.username.focus();
|
||||
return false; }
|
||||
|
||||
if (RegisterForm.password.value == "" ) { alert( "Please choose a password!" );
|
||||
RegisterForm.password.focus();
|
||||
return false; }
|
||||
|
||||
if (RegisterForm.email.value == "" ) { alert( "Please enter your email address." );
|
||||
RegisterForm.email.focus();
|
||||
return false; }
|
||||
|
||||
checkEmail = RegisterForm.email.value
|
||||
if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.')))
|
||||
{alert("Your emails address is invalid!.");
|
||||
RegisterForm.email.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
// return true;
|
||||
}
|
||||
|
||||
|
||||
function CheckTellForm(tellform)
|
||||
{
|
||||
if (tellform.name.value == "" ) { alert( "ÇáÑÌÇÁ ÃÏÎá ÇáÅÓã ÈÇáßÇãá" );
|
||||
tellform.name.focus();
|
||||
return false; }
|
||||
|
||||
if (tellform.email.value == "" ) { alert( "ÃÏÎá ÇáÈÑíÏ ÇáÅáßÊÑæäí" );
|
||||
tellform.email.focus();
|
||||
return false; }
|
||||
|
||||
checkEmail = tellform.email.value
|
||||
if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.')))
|
||||
{alert("ÇáÈÑíÏ ÇáÅáßÊÑæäí ÎØÃ!.");
|
||||
tellform.email.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
if (tellform.fname.value == "" ) { alert( "ÃÏÎá ÅÓã ÕÏíÞß" );
|
||||
tellform.fname.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
|
||||
if (tellform.femail.value == "" ) { alert( "ÃÏÎá ÇáÈÑíÏ ÇáÇáßÊÑæäí ÇáÎÇÕ ÈÕÏíÞß" );
|
||||
tellform.femail.focus();
|
||||
return false; }
|
||||
|
||||
checkEmail = tellform.femail.value
|
||||
if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.')))
|
||||
{alert("ÇáÈÑíÏ ÇáÅáßÊÑæäí ÎØÃ!.");
|
||||
tellform.femail.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
|
||||
// return true;
|
||||
}
|
||||
|
||||
|
||||
var newwindow;
|
||||
function pop(url)
|
||||
{
|
||||
newwindow=window.open(url,'poppage', 'toolbars=0, scrollbars=1, location=0, statusbars=1, menubars=0, resizable=0, width=500, height=400');
|
||||
if (window.focus) {newwindow.focus()}
|
||||
}
|
||||
|
||||
function popimg(url)
|
||||
{
|
||||
newwindow=window.open(url,'name','height=500,width=650,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
|
||||
if (window.focus) {newwindow.focus()}
|
||||
}
|
||||
|
||||
|
||||
|
||||
<!-- ;
|
||||
var newwindow;
|
||||
var wheight = 0, wwidth = 0;
|
||||
function viewimg(url, title, iwidth, iheight, colour) {
|
||||
var pwidth, pheight;
|
||||
|
||||
if ( !newwindow || newwindow.closed ) {
|
||||
pwidth=iwidth+30;
|
||||
pheight=iheight+30;
|
||||
newwindow=window.open('','htmlname','width=' + pwidth +',height=' +pheight + ',resizable=1,top=50,left=10');
|
||||
wheight=iheight;
|
||||
wwidth=iwidth;
|
||||
}
|
||||
|
||||
if (wheight!=iheight || wwidth!=iwidth ) {
|
||||
pwidth=iwidth+30;
|
||||
pheight=iheight+60;
|
||||
newwindow.resizeTo(pwidth, pheight);
|
||||
wheight=iheight;
|
||||
wwidth=iwidth;
|
||||
}
|
||||
|
||||
newwindow.document.clear();
|
||||
newwindow.focus();
|
||||
newwindow.document.writeln('<html> <head> <title>' + title + '<\/title> <\/head> <body bgcolor= \"' + colour + '\"> <center>');
|
||||
newwindow.document.writeln('<a titl="ÅÖÛØ ÇáÕæÑÉ ááÅÛáÇÞ" href="javascript:window.close();"><img src=' + url + ' border=0></a>');
|
||||
newwindow.document.writeln('<\/center> <\/body> <\/html>');
|
||||
newwindow.document.close();
|
||||
newwindow.focus();
|
||||
}
|
||||
|
||||
// Routines to tidy up popup windows when page is left
|
||||
// Call with an onUnload="tidy5()" in body tag
|
||||
|
||||
function tidy5() {
|
||||
if (newwindow && !newwindow.closed) { newwindow.close(); }
|
||||
}
|
3271
site/retailers/rating/scripts/prototype.js
vendored
Normal file
3271
site/retailers/rating/scripts/prototype.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
54
site/retailers/rating/scripts/rating.js
Normal file
54
site/retailers/rating/scripts/rating.js
Normal file
@ -0,0 +1,54 @@
|
||||
function RateItem(varParentId, varItemId, varRating)
|
||||
{
|
||||
var elementId = varParentId+"_"+varItemId;
|
||||
var varOrigClassName = document.getElementById(elementId).className;
|
||||
|
||||
// Retrieve Ajax Feeds
|
||||
new Ajax.Request('ajax.rate.item.php',
|
||||
{
|
||||
method: 'post',
|
||||
parameters: {parent: varParentId, item: varItemId, rating: varRating, classes: varOrigClassName},
|
||||
onSuccess: ReloadRating,
|
||||
onFailure: RatingError
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
function ReadNameValuePairs(nameValuePair)
|
||||
{
|
||||
var trimspaces = /(\s)+/;
|
||||
var returnData = new Array();
|
||||
var pairs = nameValuePair.split('&');
|
||||
|
||||
for (var i = 0; i < pairs.length; i++)
|
||||
{
|
||||
var pair = pairs[i].split('=');
|
||||
returnData[pair[0].replace(trimspaces, "")] = pair[1];
|
||||
}
|
||||
|
||||
return returnData;
|
||||
}
|
||||
|
||||
function ReloadRating(requestObj, jsonObj)
|
||||
{
|
||||
var newlines = /(\r\n|\r|\n)/;
|
||||
var returnData = ReadNameValuePairs(requestObj.responseText.replace(newlines, ""));
|
||||
var elementId = returnData['parent']+"_"+returnData['item'];
|
||||
|
||||
document.getElementById(elementId).className = returnData['classes'];
|
||||
var liObj = document.getElementById(elementId).getElementsByTagName('a');
|
||||
|
||||
for (var i = 0; i < liObj.length; i++)
|
||||
{
|
||||
liObj[i].onclick = function(){};
|
||||
}
|
||||
document.getElementById(returnData['parent']).className = returnData['parentClass'];
|
||||
}
|
||||
|
||||
function RatingError()
|
||||
{
|
||||
|
||||
//alert ("Error");
|
||||
|
||||
}
|
3271
site/roadshow/class/rating/scripts/prototype.js
vendored
Normal file
3271
site/roadshow/class/rating/scripts/prototype.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
54
site/roadshow/class/rating/scripts/rating.js
Normal file
54
site/roadshow/class/rating/scripts/rating.js
Normal file
@ -0,0 +1,54 @@
|
||||
function RateItem(varParentId, varItemId, varRating)
|
||||
{
|
||||
var elementId = varParentId+"_"+varItemId;
|
||||
var varOrigClassName = document.getElementById(elementId).className;
|
||||
|
||||
// Retrieve Ajax Feeds
|
||||
new Ajax.Request('ajax.rate.item.php',
|
||||
{
|
||||
method: 'post',
|
||||
parameters: {parent: varParentId, item: varItemId, rating: varRating, classes: varOrigClassName},
|
||||
onSuccess: ReloadRating,
|
||||
onFailure: RatingError
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
function ReadNameValuePairs(nameValuePair)
|
||||
{
|
||||
var trimspaces = /(\s)+/;
|
||||
var returnData = new Array();
|
||||
var pairs = nameValuePair.split('&');
|
||||
|
||||
for (var i = 0; i < pairs.length; i++)
|
||||
{
|
||||
var pair = pairs[i].split('=');
|
||||
returnData[pair[0].replace(trimspaces, "")] = pair[1];
|
||||
}
|
||||
|
||||
return returnData;
|
||||
}
|
||||
|
||||
function ReloadRating(requestObj, jsonObj)
|
||||
{
|
||||
var newlines = /(\r\n|\r|\n)/;
|
||||
var returnData = ReadNameValuePairs(requestObj.responseText.replace(newlines, ""));
|
||||
var elementId = returnData['parent']+"_"+returnData['item'];
|
||||
|
||||
document.getElementById(elementId).className = returnData['classes'];
|
||||
var liObj = document.getElementById(elementId).getElementsByTagName('a');
|
||||
|
||||
for (var i = 0; i < liObj.length; i++)
|
||||
{
|
||||
liObj[i].onclick = function(){};
|
||||
}
|
||||
document.getElementById(returnData['parent']).className = returnData['parentClass'];
|
||||
}
|
||||
|
||||
function RatingError()
|
||||
{
|
||||
|
||||
//alert ("Error");
|
||||
|
||||
}
|
22
site/roadshow/gmaps_allroadshow.js
Normal file
22
site/roadshow/gmaps_allroadshow.js
Normal file
@ -0,0 +1,22 @@
|
||||
<script type="text/javascript" src="http://www.slowtwitch.com/googlemaps/util.js"></script>
|
||||
<script type="text/javascript">
|
||||
function initializeRoadshowMap() {
|
||||
//alert("mapping!");
|
||||
var myLatlng = new google.maps.LatLng(40, -100);
|
||||
var myOptions = {
|
||||
zoom: 3,
|
||||
center: myLatlng,
|
||||
mapTypeId: google.maps.MapTypeId.ROADMAP
|
||||
}
|
||||
var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
|
||||
downloadUrl("http://www.slowtwitch.com/googlemaps/roadshow_xml.php", function(data) {
|
||||
var markers = data.documentElement.getElementsByTagName("marker");
|
||||
for (var i = 0; i < markers.length; i++) {
|
||||
var latlng = new google.maps.LatLng(parseFloat(markers[i].getAttribute("lat")),
|
||||
parseFloat(markers[i].getAttribute("lng")));
|
||||
var marker = new google.maps.Marker({position: latlng, map: map, title: markers[i].getAttribute("name")});
|
||||
//alert (latlng);
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
123
site/roadshow/javascript.js
Normal file
123
site/roadshow/javascript.js
Normal file
@ -0,0 +1,123 @@
|
||||
function validateEmail(emailAddress) {
|
||||
var match = /^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*$/.test(emailAddress);
|
||||
return match;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function CheckRegisterForm(RegisterForm)
|
||||
{
|
||||
if (RegisterForm.username.value == "" ) { alert( "Please choose a username!" );
|
||||
RegisterForm.username.focus();
|
||||
return false; }
|
||||
|
||||
if (RegisterForm.password.value == "" ) { alert( "Please choose a password!" );
|
||||
RegisterForm.password.focus();
|
||||
return false; }
|
||||
|
||||
if (RegisterForm.email.value == "" ) { alert( "Please enter your email address." );
|
||||
RegisterForm.email.focus();
|
||||
return false; }
|
||||
|
||||
checkEmail = RegisterForm.email.value
|
||||
if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.')))
|
||||
{alert("Your emails address is invalid!.");
|
||||
RegisterForm.email.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
// return true;
|
||||
}
|
||||
|
||||
|
||||
function CheckTellForm(tellform)
|
||||
{
|
||||
if (tellform.name.value == "" ) { alert( "ÇáÑÌÇÁ ÃÏÎá ÇáÅÓã ÈÇáßÇãá" );
|
||||
tellform.name.focus();
|
||||
return false; }
|
||||
|
||||
if (tellform.email.value == "" ) { alert( "ÃÏÎá ÇáÈÑíÏ ÇáÅáßÊÑæäí" );
|
||||
tellform.email.focus();
|
||||
return false; }
|
||||
|
||||
checkEmail = tellform.email.value
|
||||
if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.')))
|
||||
{alert("ÇáÈÑíÏ ÇáÅáßÊÑæäí ÎØÃ!.");
|
||||
tellform.email.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
if (tellform.fname.value == "" ) { alert( "ÃÏÎá ÅÓã ÕÏíÞß" );
|
||||
tellform.fname.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
|
||||
if (tellform.femail.value == "" ) { alert( "ÃÏÎá ÇáÈÑíÏ ÇáÇáßÊÑæäí ÇáÎÇÕ ÈÕÏíÞß" );
|
||||
tellform.femail.focus();
|
||||
return false; }
|
||||
|
||||
checkEmail = tellform.femail.value
|
||||
if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.')))
|
||||
{alert("ÇáÈÑíÏ ÇáÅáßÊÑæäí ÎØÃ!.");
|
||||
tellform.femail.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
|
||||
// return true;
|
||||
}
|
||||
|
||||
|
||||
var newwindow;
|
||||
function pop(url)
|
||||
{
|
||||
newwindow=window.open(url,'poppage', 'toolbars=0, scrollbars=1, location=0, statusbars=1, menubars=0, resizable=0, width=500, height=400');
|
||||
if (window.focus) {newwindow.focus()}
|
||||
}
|
||||
|
||||
function popimg(url)
|
||||
{
|
||||
newwindow=window.open(url,'name','height=500,width=650,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
|
||||
if (window.focus) {newwindow.focus()}
|
||||
}
|
||||
|
||||
|
||||
|
||||
<!-- ;
|
||||
var newwindow;
|
||||
var wheight = 0, wwidth = 0;
|
||||
function viewimg(url, title, iwidth, iheight, colour) {
|
||||
var pwidth, pheight;
|
||||
|
||||
if ( !newwindow || newwindow.closed ) {
|
||||
pwidth=iwidth+30;
|
||||
pheight=iheight+30;
|
||||
newwindow=window.open('','htmlname','width=' + pwidth +',height=' +pheight + ',resizable=1,top=50,left=10');
|
||||
wheight=iheight;
|
||||
wwidth=iwidth;
|
||||
}
|
||||
|
||||
if (wheight!=iheight || wwidth!=iwidth ) {
|
||||
pwidth=iwidth+30;
|
||||
pheight=iheight+60;
|
||||
newwindow.resizeTo(pwidth, pheight);
|
||||
wheight=iheight;
|
||||
wwidth=iwidth;
|
||||
}
|
||||
|
||||
newwindow.document.clear();
|
||||
newwindow.focus();
|
||||
newwindow.document.writeln('<html> <head> <title>' + title + '<\/title> <\/head> <body bgcolor= \"' + colour + '\"> <center>');
|
||||
newwindow.document.writeln('<a titl="ÅÖÛØ ÇáÕæÑÉ ááÅÛáÇÞ" href="javascript:window.close();"><img src=' + url + ' border=0></a>');
|
||||
newwindow.document.writeln('<\/center> <\/body> <\/html>');
|
||||
newwindow.document.close();
|
||||
newwindow.focus();
|
||||
}
|
||||
|
||||
// Routines to tidy up popup windows when page is left
|
||||
// Call with an onUnload="tidy5()" in body tag
|
||||
|
||||
function tidy5() {
|
||||
if (newwindow && !newwindow.closed) { newwindow.close(); }
|
||||
}
|
3271
site/roadshow/rating/scripts/prototype.js
vendored
Normal file
3271
site/roadshow/rating/scripts/prototype.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
54
site/roadshow/rating/scripts/rating.js
Normal file
54
site/roadshow/rating/scripts/rating.js
Normal file
@ -0,0 +1,54 @@
|
||||
function RateItem(varParentId, varItemId, varRating)
|
||||
{
|
||||
var elementId = varParentId+"_"+varItemId;
|
||||
var varOrigClassName = document.getElementById(elementId).className;
|
||||
|
||||
// Retrieve Ajax Feeds
|
||||
new Ajax.Request('ajax.rate.item.php',
|
||||
{
|
||||
method: 'post',
|
||||
parameters: {parent: varParentId, item: varItemId, rating: varRating, classes: varOrigClassName},
|
||||
onSuccess: ReloadRating,
|
||||
onFailure: RatingError
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
function ReadNameValuePairs(nameValuePair)
|
||||
{
|
||||
var trimspaces = /(\s)+/;
|
||||
var returnData = new Array();
|
||||
var pairs = nameValuePair.split('&');
|
||||
|
||||
for (var i = 0; i < pairs.length; i++)
|
||||
{
|
||||
var pair = pairs[i].split('=');
|
||||
returnData[pair[0].replace(trimspaces, "")] = pair[1];
|
||||
}
|
||||
|
||||
return returnData;
|
||||
}
|
||||
|
||||
function ReloadRating(requestObj, jsonObj)
|
||||
{
|
||||
var newlines = /(\r\n|\r|\n)/;
|
||||
var returnData = ReadNameValuePairs(requestObj.responseText.replace(newlines, ""));
|
||||
var elementId = returnData['parent']+"_"+returnData['item'];
|
||||
|
||||
document.getElementById(elementId).className = returnData['classes'];
|
||||
var liObj = document.getElementById(elementId).getElementsByTagName('a');
|
||||
|
||||
for (var i = 0; i < liObj.length; i++)
|
||||
{
|
||||
liObj[i].onclick = function(){};
|
||||
}
|
||||
document.getElementById(returnData['parent']).className = returnData['parentClass'];
|
||||
}
|
||||
|
||||
function RatingError()
|
||||
{
|
||||
|
||||
//alert ("Error");
|
||||
|
||||
}
|
123
site/runshops/javascript.js
Normal file
123
site/runshops/javascript.js
Normal file
@ -0,0 +1,123 @@
|
||||
function validateEmail(emailAddress) {
|
||||
var match = /^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*$/.test(emailAddress);
|
||||
return match;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function CheckRegisterForm(RegisterForm)
|
||||
{
|
||||
if (RegisterForm.username.value == "" ) { alert( "Please choose a username!" );
|
||||
RegisterForm.username.focus();
|
||||
return false; }
|
||||
|
||||
if (RegisterForm.password.value == "" ) { alert( "Please choose a password!" );
|
||||
RegisterForm.password.focus();
|
||||
return false; }
|
||||
|
||||
if (RegisterForm.email.value == "" ) { alert( "Please enter your email address." );
|
||||
RegisterForm.email.focus();
|
||||
return false; }
|
||||
|
||||
checkEmail = RegisterForm.email.value
|
||||
if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.')))
|
||||
{alert("Your emails address is invalid!.");
|
||||
RegisterForm.email.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
// return true;
|
||||
}
|
||||
|
||||
|
||||
function CheckTellForm(tellform)
|
||||
{
|
||||
if (tellform.name.value == "" ) { alert( "ÇáÑÌÇÁ ÃÏÎá ÇáÅÓã ÈÇáßÇãá" );
|
||||
tellform.name.focus();
|
||||
return false; }
|
||||
|
||||
if (tellform.email.value == "" ) { alert( "ÃÏÎá ÇáÈÑíÏ ÇáÅáßÊÑæäí" );
|
||||
tellform.email.focus();
|
||||
return false; }
|
||||
|
||||
checkEmail = tellform.email.value
|
||||
if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.')))
|
||||
{alert("ÇáÈÑíÏ ÇáÅáßÊÑæäí ÎØÃ!.");
|
||||
tellform.email.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
if (tellform.fname.value == "" ) { alert( "ÃÏÎá ÅÓã ÕÏíÞß" );
|
||||
tellform.fname.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
|
||||
if (tellform.femail.value == "" ) { alert( "ÃÏÎá ÇáÈÑíÏ ÇáÇáßÊÑæäí ÇáÎÇÕ ÈÕÏíÞß" );
|
||||
tellform.femail.focus();
|
||||
return false; }
|
||||
|
||||
checkEmail = tellform.femail.value
|
||||
if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.')))
|
||||
{alert("ÇáÈÑíÏ ÇáÅáßÊÑæäí ÎØÃ!.");
|
||||
tellform.femail.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
|
||||
// return true;
|
||||
}
|
||||
|
||||
|
||||
var newwindow;
|
||||
function pop(url)
|
||||
{
|
||||
newwindow=window.open(url,'poppage', 'toolbars=0, scrollbars=1, location=0, statusbars=1, menubars=0, resizable=0, width=500, height=400');
|
||||
if (window.focus) {newwindow.focus()}
|
||||
}
|
||||
|
||||
function popimg(url)
|
||||
{
|
||||
newwindow=window.open(url,'name','height=500,width=650,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
|
||||
if (window.focus) {newwindow.focus()}
|
||||
}
|
||||
|
||||
|
||||
|
||||
<!-- ;
|
||||
var newwindow;
|
||||
var wheight = 0, wwidth = 0;
|
||||
function viewimg(url, title, iwidth, iheight, colour) {
|
||||
var pwidth, pheight;
|
||||
|
||||
if ( !newwindow || newwindow.closed ) {
|
||||
pwidth=iwidth+30;
|
||||
pheight=iheight+30;
|
||||
newwindow=window.open('','htmlname','width=' + pwidth +',height=' +pheight + ',resizable=1,top=50,left=10');
|
||||
wheight=iheight;
|
||||
wwidth=iwidth;
|
||||
}
|
||||
|
||||
if (wheight!=iheight || wwidth!=iwidth ) {
|
||||
pwidth=iwidth+30;
|
||||
pheight=iheight+60;
|
||||
newwindow.resizeTo(pwidth, pheight);
|
||||
wheight=iheight;
|
||||
wwidth=iwidth;
|
||||
}
|
||||
|
||||
newwindow.document.clear();
|
||||
newwindow.focus();
|
||||
newwindow.document.writeln('<html> <head> <title>' + title + '<\/title> <\/head> <body bgcolor= \"' + colour + '\"> <center>');
|
||||
newwindow.document.writeln('<a titl="ÅÖÛØ ÇáÕæÑÉ ááÅÛáÇÞ" href="javascript:window.close();"><img src=' + url + ' border=0></a>');
|
||||
newwindow.document.writeln('<\/center> <\/body> <\/html>');
|
||||
newwindow.document.close();
|
||||
newwindow.focus();
|
||||
}
|
||||
|
||||
// Routines to tidy up popup windows when page is left
|
||||
// Call with an onUnload="tidy5()" in body tag
|
||||
|
||||
function tidy5() {
|
||||
if (newwindow && !newwindow.closed) { newwindow.close(); }
|
||||
}
|
3271
site/runshops/rating/scripts/prototype.js
vendored
Normal file
3271
site/runshops/rating/scripts/prototype.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
54
site/runshops/rating/scripts/rating.js
Normal file
54
site/runshops/rating/scripts/rating.js
Normal file
@ -0,0 +1,54 @@
|
||||
function RateItem(varParentId, varItemId, varRating)
|
||||
{
|
||||
var elementId = varParentId+"_"+varItemId;
|
||||
var varOrigClassName = document.getElementById(elementId).className;
|
||||
|
||||
// Retrieve Ajax Feeds
|
||||
new Ajax.Request('ajax.rate.item.php',
|
||||
{
|
||||
method: 'post',
|
||||
parameters: {parent: varParentId, item: varItemId, rating: varRating, classes: varOrigClassName},
|
||||
onSuccess: ReloadRating,
|
||||
onFailure: RatingError
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
function ReadNameValuePairs(nameValuePair)
|
||||
{
|
||||
var trimspaces = /(\s)+/;
|
||||
var returnData = new Array();
|
||||
var pairs = nameValuePair.split('&');
|
||||
|
||||
for (var i = 0; i < pairs.length; i++)
|
||||
{
|
||||
var pair = pairs[i].split('=');
|
||||
returnData[pair[0].replace(trimspaces, "")] = pair[1];
|
||||
}
|
||||
|
||||
return returnData;
|
||||
}
|
||||
|
||||
function ReloadRating(requestObj, jsonObj)
|
||||
{
|
||||
var newlines = /(\r\n|\r|\n)/;
|
||||
var returnData = ReadNameValuePairs(requestObj.responseText.replace(newlines, ""));
|
||||
var elementId = returnData['parent']+"_"+returnData['item'];
|
||||
|
||||
document.getElementById(elementId).className = returnData['classes'];
|
||||
var liObj = document.getElementById(elementId).getElementsByTagName('a');
|
||||
|
||||
for (var i = 0; i < liObj.length; i++)
|
||||
{
|
||||
liObj[i].onclick = function(){};
|
||||
}
|
||||
document.getElementById(returnData['parent']).className = returnData['parentClass'];
|
||||
}
|
||||
|
||||
function RatingError()
|
||||
{
|
||||
|
||||
//alert ("Error");
|
||||
|
||||
}
|
3271
site/triclubs/class/rating/scripts/prototype.js
vendored
Normal file
3271
site/triclubs/class/rating/scripts/prototype.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
54
site/triclubs/class/rating/scripts/rating.js
Normal file
54
site/triclubs/class/rating/scripts/rating.js
Normal file
@ -0,0 +1,54 @@
|
||||
function RateItem(varParentId, varItemId, varRating)
|
||||
{
|
||||
var elementId = varParentId+"_"+varItemId;
|
||||
var varOrigClassName = document.getElementById(elementId).className;
|
||||
|
||||
// Retrieve Ajax Feeds
|
||||
new Ajax.Request('ajax.rate.item.php',
|
||||
{
|
||||
method: 'post',
|
||||
parameters: {parent: varParentId, item: varItemId, rating: varRating, classes: varOrigClassName},
|
||||
onSuccess: ReloadRating,
|
||||
onFailure: RatingError
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
function ReadNameValuePairs(nameValuePair)
|
||||
{
|
||||
var trimspaces = /(\s)+/;
|
||||
var returnData = new Array();
|
||||
var pairs = nameValuePair.split('&');
|
||||
|
||||
for (var i = 0; i < pairs.length; i++)
|
||||
{
|
||||
var pair = pairs[i].split('=');
|
||||
returnData[pair[0].replace(trimspaces, "")] = pair[1];
|
||||
}
|
||||
|
||||
return returnData;
|
||||
}
|
||||
|
||||
function ReloadRating(requestObj, jsonObj)
|
||||
{
|
||||
var newlines = /(\r\n|\r|\n)/;
|
||||
var returnData = ReadNameValuePairs(requestObj.responseText.replace(newlines, ""));
|
||||
var elementId = returnData['parent']+"_"+returnData['item'];
|
||||
|
||||
document.getElementById(elementId).className = returnData['classes'];
|
||||
var liObj = document.getElementById(elementId).getElementsByTagName('a');
|
||||
|
||||
for (var i = 0; i < liObj.length; i++)
|
||||
{
|
||||
liObj[i].onclick = function(){};
|
||||
}
|
||||
document.getElementById(returnData['parent']).className = returnData['parentClass'];
|
||||
}
|
||||
|
||||
function RatingError()
|
||||
{
|
||||
|
||||
//alert ("Error");
|
||||
|
||||
}
|
123
site/triclubs/javascript.js
Normal file
123
site/triclubs/javascript.js
Normal file
@ -0,0 +1,123 @@
|
||||
function validateEmail(emailAddress) {
|
||||
var match = /^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*$/.test(emailAddress);
|
||||
return match;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function CheckRegisterForm(RegisterForm)
|
||||
{
|
||||
if (RegisterForm.username.value == "" ) { alert( "Please choose a username!" );
|
||||
RegisterForm.username.focus();
|
||||
return false; }
|
||||
|
||||
if (RegisterForm.password.value == "" ) { alert( "Please choose a password!" );
|
||||
RegisterForm.password.focus();
|
||||
return false; }
|
||||
|
||||
if (RegisterForm.email.value == "" ) { alert( "Please enter your email address." );
|
||||
RegisterForm.email.focus();
|
||||
return false; }
|
||||
|
||||
checkEmail = RegisterForm.email.value
|
||||
if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.')))
|
||||
{alert("Your emails address is invalid!.");
|
||||
RegisterForm.email.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
// return true;
|
||||
}
|
||||
|
||||
|
||||
function CheckTellForm(tellform)
|
||||
{
|
||||
if (tellform.name.value == "" ) { alert( "ÇáÑÌÇÁ ÃÏÎá ÇáÅÓã ÈÇáßÇãá" );
|
||||
tellform.name.focus();
|
||||
return false; }
|
||||
|
||||
if (tellform.email.value == "" ) { alert( "ÃÏÎá ÇáÈÑíÏ ÇáÅáßÊÑæäí" );
|
||||
tellform.email.focus();
|
||||
return false; }
|
||||
|
||||
checkEmail = tellform.email.value
|
||||
if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.')))
|
||||
{alert("ÇáÈÑíÏ ÇáÅáßÊÑæäí ÎØÃ!.");
|
||||
tellform.email.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
if (tellform.fname.value == "" ) { alert( "ÃÏÎá ÅÓã ÕÏíÞß" );
|
||||
tellform.fname.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
|
||||
if (tellform.femail.value == "" ) { alert( "ÃÏÎá ÇáÈÑíÏ ÇáÇáßÊÑæäí ÇáÎÇÕ ÈÕÏíÞß" );
|
||||
tellform.femail.focus();
|
||||
return false; }
|
||||
|
||||
checkEmail = tellform.femail.value
|
||||
if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.')))
|
||||
{alert("ÇáÈÑíÏ ÇáÅáßÊÑæäí ÎØÃ!.");
|
||||
tellform.femail.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
|
||||
// return true;
|
||||
}
|
||||
|
||||
|
||||
var newwindow;
|
||||
function pop(url)
|
||||
{
|
||||
newwindow=window.open(url,'poppage', 'toolbars=0, scrollbars=1, location=0, statusbars=1, menubars=0, resizable=0, width=500, height=400');
|
||||
if (window.focus) {newwindow.focus()}
|
||||
}
|
||||
|
||||
function popimg(url)
|
||||
{
|
||||
newwindow=window.open(url,'name','height=500,width=650,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
|
||||
if (window.focus) {newwindow.focus()}
|
||||
}
|
||||
|
||||
|
||||
|
||||
<!-- ;
|
||||
var newwindow;
|
||||
var wheight = 0, wwidth = 0;
|
||||
function viewimg(url, title, iwidth, iheight, colour) {
|
||||
var pwidth, pheight;
|
||||
|
||||
if ( !newwindow || newwindow.closed ) {
|
||||
pwidth=iwidth+30;
|
||||
pheight=iheight+30;
|
||||
newwindow=window.open('','htmlname','width=' + pwidth +',height=' +pheight + ',resizable=1,top=50,left=10');
|
||||
wheight=iheight;
|
||||
wwidth=iwidth;
|
||||
}
|
||||
|
||||
if (wheight!=iheight || wwidth!=iwidth ) {
|
||||
pwidth=iwidth+30;
|
||||
pheight=iheight+60;
|
||||
newwindow.resizeTo(pwidth, pheight);
|
||||
wheight=iheight;
|
||||
wwidth=iwidth;
|
||||
}
|
||||
|
||||
newwindow.document.clear();
|
||||
newwindow.focus();
|
||||
newwindow.document.writeln('<html> <head> <title>' + title + '<\/title> <\/head> <body bgcolor= \"' + colour + '\"> <center>');
|
||||
newwindow.document.writeln('<a titl="ÅÖÛØ ÇáÕæÑÉ ááÅÛáÇÞ" href="javascript:window.close();"><img src=' + url + ' border=0></a>');
|
||||
newwindow.document.writeln('<\/center> <\/body> <\/html>');
|
||||
newwindow.document.close();
|
||||
newwindow.focus();
|
||||
}
|
||||
|
||||
// Routines to tidy up popup windows when page is left
|
||||
// Call with an onUnload="tidy5()" in body tag
|
||||
|
||||
function tidy5() {
|
||||
if (newwindow && !newwindow.closed) { newwindow.close(); }
|
||||
}
|
0
slowtwitch.com/.htpasswd
Normal file
0
slowtwitch.com/.htpasswd
Normal file
Loading…
Reference in New Issue
Block a user