diff --git a/App_Code/Fingerprint.cs b/App_Code/Fingerprint.cs index fee3bab..082585d 100644 --- a/App_Code/Fingerprint.cs +++ b/App_Code/Fingerprint.cs @@ -1,15 +1,9 @@ using System; -using System.Collections.Generic; using System.IO; -using System.Linq; using System.Web; using System.Web.Caching; using System.Web.Hosting; -using System.Web.WebPages.Html; -/// -/// Summary description for Fingerprint -/// public class Fingerprint { public static string Tag(string rootRelativePath) diff --git a/App_Code/WhitespaceModule.cs b/App_Code/WhitespaceModule.cs index 8f2d85f..350caf8 100644 --- a/App_Code/WhitespaceModule.cs +++ b/App_Code/WhitespaceModule.cs @@ -1,14 +1,9 @@ -#region Using - -using System; +using System; using System.IO; -using System.Web; -using System.IO.Compression; using System.Text.RegularExpressions; +using System.Web; using System.Web.WebPages; -#endregion - /// /// Removes whitespace from the webpage. /// diff --git a/App_Data/items.xml b/App_Data/items.xml index 3bbd15a..c44d44f 100644 --- a/App_Data/items.xml +++ b/App_Data/items.xml @@ -25,6 +25,10 @@ Don’t Forget the Viewport Meta Tag Make your website mobile friendly + + Input type: Email, Url, Phone + Diving in to HTML5 forms + 6 free mobile emulators Opera Mobile Emulator @@ -71,6 +75,11 @@ Online generator How to properly link a favicon + + 11 best practices for URLs + URL rewriting in IIS + URL rewrite in Apache + How to deply P3P Configure IIS to use P3P @@ -161,7 +170,7 @@ ASP.NET security overview - XSS cheat sheet + XSS cheat sheet DOM based XSS cheat sheet Free XSS scanner @@ -175,6 +184,7 @@ Setup SSL on IIS 7 Setup SSL on Apache + Online SSL checker diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..d3f1c5c --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,7 @@ +Copyright 2013 Mads Kristensen, Sayed Ibrahim Hashimi + +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. \ No newline at end of file diff --git a/README.md b/README.md index 2e155e8..ded26fd 100644 --- a/README.md +++ b/README.md @@ -1 +1,11 @@ -# Web Developer Checklist \ No newline at end of file +# Web Developer Checklist + +Created by: + +**Sayed Ibrahim Hashimi** +http://sedodream.com +@sayedihashimi + +**Mads Kristensen** +http://madskristensen.net +@mkristensen \ No newline at end of file diff --git a/Scripts/script.js b/Scripts/script.js index c64af0c..be4adbf 100644 --- a/Scripts/script.js +++ b/Scripts/script.js @@ -48,13 +48,21 @@ function openDetails(e) { if (!e) e = window.event; - var detail = (e.target || e.srcElement); + var detail = (e.target || e.srcElement); var ul = (detail.nextElementSibling || detail.nextSibling); if (ul.style.maxHeight !== '100px') ul.style.maxHeight = '100px'; else ul.style.maxHeight = '0'; + + for (var i = 0; i < details.length; i++) { + + if (details[i] !== detail) { + var d = (details[i].nextElementSibling || details[i].nextSibling); + d.style.maxHeight = "0"; + } + } } function calculateProgress() { @@ -90,17 +98,11 @@ var max = parseInt(progress.max, 10); fallback.style.width = (value * 100 / max) + "%"; } - + function clearAll() { document.getElementById("clearall").onclick = function () { - for (var i = 0; i < details.length; i++) { - - var d = (details[i].nextElementSibling || details[i].nextSibling); - d.style.maxHeight = "0"; - } - for (var i = 0; i < checkboxes.length; i++) { checkboxes[i].checked = false; } diff --git a/Scripts/script.min.js b/Scripts/script.min.js index 83dbe4b..4ba6469 100644 --- a/Scripts/script.min.js +++ b/Scripts/script.min.js @@ -1 +1 @@ -(function(){function e(){for(var r=document.getElementsByTagName("input"),i=0;i - - - @@ -21,7 +15,7 @@ - + @@ -40,6 +34,7 @@ + @@ -49,10 +44,6 @@ - - - - @@ -64,4 +55,4 @@ - + \ No newline at end of file diff --git a/index.cshtml b/index.cshtml index 74d378a..3a5dd1c 100644 --- a/index.cshtml +++ b/index.cshtml @@ -9,8 +9,6 @@ string data = Server.MapPath("~/app_data/items.xml"); Response.Cache.SetLastModified(File.GetLastWriteTimeUtc(file)); Response.AddFileDependencies(new[] { file, css, js, data }); - - Response.AddHeader("P3P", "CP=\"NOI DSP COR ADMa IVDa OUR NOR\""); } @@ -20,6 +18,7 @@ + @@ -44,5 +43,16 @@ +