Reformat code

This commit is contained in:
2018-03-18 02:31:31 +01:00
parent 2ce6891569
commit 150a11a2a6
11 changed files with 24 additions and 28 deletions

View File

@@ -1,5 +1,4 @@
using System; using System.Collections.Generic;
using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Text; using System.Text;

View File

@@ -1,5 +1,4 @@
using System; using System.Web;
using System.Web;
namespace VAR.Focus.Web.Code namespace VAR.Focus.Web.Code
{ {

View File

@@ -1,5 +1,4 @@
using System; using System.Web;
using System.Web;
namespace VAR.Focus.Web.Code namespace VAR.Focus.Web.Code
{ {

View File

@@ -1,7 +1,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Web; using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls; using System.Web.UI.WebControls;
using VAR.Focus.BusinessLogic; using VAR.Focus.BusinessLogic;
using VAR.Focus.BusinessLogic.Entities; using VAR.Focus.BusinessLogic.Entities;

View File

@@ -54,9 +54,9 @@ function ElementToggleClass(element, className) {
function escapeHTML(s) { function escapeHTML(s) {
return s.replace(/&/g, '&') return s.replace(/&/g, '&')
.replace(/"/g, '"') .replace(/"/g, '"')
.replace(/</g, '&lt;') .replace(/</g, '&lt;')
.replace(/>/g, '&gt;'); .replace(/>/g, '&gt;');
} }
function fixedEncodeURIComponent(str) { function fixedEncodeURIComponent(str) {

View File

@@ -50,7 +50,7 @@ function SendData(url, data, onData, onError) {
} }
}; };
xhr.setRequestHeader('Content-Type', xhr.setRequestHeader('Content-Type',
'application/x-www-form-urlencoded'); 'application/x-www-form-urlencoded');
xhr.send(GetDataQueryString(data)); xhr.send(GetDataQueryString(data));
} }
@@ -62,8 +62,8 @@ function GetFormQueryString(idForm) {
function appendVal(name, value) { function appendVal(name, value) {
queryString += (queryString.length > 0 ? "&" : "") queryString += (queryString.length > 0 ? "&" : "")
+ fixedEncodeURIComponent(name) + "=" + fixedEncodeURIComponent(name) + "="
+ fixedEncodeURIComponent(value ? value : ""); + fixedEncodeURIComponent(value ? value : "");
} }
var elements = form.elements; var elements = form.elements;
@@ -74,14 +74,14 @@ function GetFormQueryString(idForm) {
if (elemName) { if (elemName) {
if ( if (
elemType.indexOf("TEXT") !== -1 || elemType.indexOf("TEXT") !== -1 ||
elemType.indexOf("TEXTAREA") !== -1 || elemType.indexOf("TEXTAREA") !== -1 ||
elemType.indexOf("PASSWORD") !== -1 || elemType.indexOf("PASSWORD") !== -1 ||
elemType.indexOf("BUTTON") !== -1 || elemType.indexOf("BUTTON") !== -1 ||
elemType.indexOf("HIDDEN") !== -1 || elemType.indexOf("HIDDEN") !== -1 ||
elemType.indexOf("SUBMIT") !== -1 || elemType.indexOf("SUBMIT") !== -1 ||
elemType.indexOf("IMAGE") !== -1 elemType.indexOf("IMAGE") !== -1
) { ) {
appendVal(elemName, element.value); appendVal(elemName, element.value);
} else if (elemType.indexOf("CHECKBOX") !== -1 && element.checked) { } else if (elemType.indexOf("CHECKBOX") !== -1 && element.checked) {
appendVal(elemName, element.value ? element.value : "On"); appendVal(elemName, element.value ? element.value : "On");
@@ -119,6 +119,6 @@ function SendForm(url, idForm, onData, onError) {
} }
}; };
xhr.setRequestHeader('Content-Type', xhr.setRequestHeader('Content-Type',
'application/x-www-form-urlencoded'); 'application/x-www-form-urlencoded');
xhr.send(GetFormQueryString(idForm)); xhr.send(GetFormQueryString(idForm));
} }

View File

@@ -12,4 +12,4 @@ input[type="submit"]::-moz-focus-inner,
input[type="reset"]::-moz-focus-inner { input[type="reset"]::-moz-focus-inner {
padding: 0 !important; padding: 0 !important;
border: 0 none !important; border: 0 none !important;
} }

View File

@@ -213,4 +213,4 @@ textarea.textbox {
.width300px { .width300px {
width: 300px !important; width: 300px !important;
max-width: 100% !important; max-width: 100% !important;
} }

View File

@@ -36,4 +36,4 @@
.boardBanner .formRow:first-child { .boardBanner .formRow:first-child {
margin: 0; margin: 0;
} }

View File

@@ -161,4 +161,4 @@
border-radius: 3px; border-radius: 3px;
box-shadow: 0 2px 4px rgba(0,0,0,0.4) inset, 0 -2px 3px rgba(255,255,255,1) inset; box-shadow: 0 2px 4px rgba(0,0,0,0.4) inset, 0 -2px 3px rgba(255,255,255,1) inset;
padding: 2px; padding: 2px;
} }

View File

@@ -57,7 +57,7 @@
padding: 5px; padding: 5px;
} }
.divChatContainer{ .divChatContainer {
transition-property: width, height, opacity; transition-property: width, height, opacity;
transition-duration: 0.3s; transition-duration: 0.3s;
overflow: hidden; overflow: hidden;
@@ -164,4 +164,4 @@
.chatButton:active { .chatButton:active {
background-color: rgb(220,220,220); 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); box-shadow: inset 0 2px 5px rgba(255,255,255,1), inset 0 -2px 5px rgba(128,128,128,1);
} }