Reformat code
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Web;
|
||||
using System.Web;
|
||||
|
||||
namespace VAR.Focus.Web.Code
|
||||
{
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Web;
|
||||
using System.Web;
|
||||
|
||||
namespace VAR.Focus.Web.Code
|
||||
{
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using VAR.Focus.BusinessLogic;
|
||||
using VAR.Focus.BusinessLogic.Entities;
|
||||
|
||||
@@ -54,9 +54,9 @@ function ElementToggleClass(element, className) {
|
||||
|
||||
function escapeHTML(s) {
|
||||
return s.replace(/&/g, '&')
|
||||
.replace(/"/g, '"')
|
||||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>');
|
||||
.replace(/"/g, '"')
|
||||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>');
|
||||
}
|
||||
|
||||
function fixedEncodeURIComponent(str) {
|
||||
|
||||
@@ -50,7 +50,7 @@ function SendData(url, data, onData, onError) {
|
||||
}
|
||||
};
|
||||
xhr.setRequestHeader('Content-Type',
|
||||
'application/x-www-form-urlencoded');
|
||||
'application/x-www-form-urlencoded');
|
||||
xhr.send(GetDataQueryString(data));
|
||||
}
|
||||
|
||||
@@ -62,8 +62,8 @@ function GetFormQueryString(idForm) {
|
||||
|
||||
function appendVal(name, value) {
|
||||
queryString += (queryString.length > 0 ? "&" : "")
|
||||
+ fixedEncodeURIComponent(name) + "="
|
||||
+ fixedEncodeURIComponent(value ? value : "");
|
||||
+ fixedEncodeURIComponent(name) + "="
|
||||
+ fixedEncodeURIComponent(value ? value : "");
|
||||
}
|
||||
|
||||
var elements = form.elements;
|
||||
@@ -74,14 +74,14 @@ function GetFormQueryString(idForm) {
|
||||
|
||||
if (elemName) {
|
||||
if (
|
||||
elemType.indexOf("TEXT") !== -1 ||
|
||||
elemType.indexOf("TEXTAREA") !== -1 ||
|
||||
elemType.indexOf("PASSWORD") !== -1 ||
|
||||
elemType.indexOf("BUTTON") !== -1 ||
|
||||
elemType.indexOf("HIDDEN") !== -1 ||
|
||||
elemType.indexOf("SUBMIT") !== -1 ||
|
||||
elemType.indexOf("IMAGE") !== -1
|
||||
) {
|
||||
elemType.indexOf("TEXT") !== -1 ||
|
||||
elemType.indexOf("TEXTAREA") !== -1 ||
|
||||
elemType.indexOf("PASSWORD") !== -1 ||
|
||||
elemType.indexOf("BUTTON") !== -1 ||
|
||||
elemType.indexOf("HIDDEN") !== -1 ||
|
||||
elemType.indexOf("SUBMIT") !== -1 ||
|
||||
elemType.indexOf("IMAGE") !== -1
|
||||
) {
|
||||
appendVal(elemName, element.value);
|
||||
} else if (elemType.indexOf("CHECKBOX") !== -1 && element.checked) {
|
||||
appendVal(elemName, element.value ? element.value : "On");
|
||||
@@ -119,6 +119,6 @@ function SendForm(url, idForm, onData, onError) {
|
||||
}
|
||||
};
|
||||
xhr.setRequestHeader('Content-Type',
|
||||
'application/x-www-form-urlencoded');
|
||||
'application/x-www-form-urlencoded');
|
||||
xhr.send(GetFormQueryString(idForm));
|
||||
}
|
||||
@@ -12,4 +12,4 @@ input[type="submit"]::-moz-focus-inner,
|
||||
input[type="reset"]::-moz-focus-inner {
|
||||
padding: 0 !important;
|
||||
border: 0 none !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -213,4 +213,4 @@ textarea.textbox {
|
||||
.width300px {
|
||||
width: 300px !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,4 +36,4 @@
|
||||
|
||||
.boardBanner .formRow:first-child {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -161,4 +161,4 @@
|
||||
border-radius: 3px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.4) inset, 0 -2px 3px rgba(255,255,255,1) inset;
|
||||
padding: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.divChatContainer{
|
||||
.divChatContainer {
|
||||
transition-property: width, height, opacity;
|
||||
transition-duration: 0.3s;
|
||||
overflow: hidden;
|
||||
@@ -164,4 +164,4 @@
|
||||
.chatButton:active {
|
||||
background-color: rgb(220,220,220);
|
||||
box-shadow: inset 0 2px 5px rgba(255,255,255,1), inset 0 -2px 5px rgba(128,128,128,1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user