From 798803089ab1f15c0e773a45e324646150c97ce5 Mon Sep 17 00:00:00 2001 From: Mads Kristensen Date: Mon, 7 Jan 2013 20:31:17 -0800 Subject: [PATCH 1/7] Added P3P compact policy, updated rules --- App_Data/items.xml | 7 ++++++- Web.config | 1 + index.cshtml | 3 +-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/App_Data/items.xml b/App_Data/items.xml index 3bbd15a..bbca408 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 @@ -70,7 +74,7 @@ Online generator How to properly link a favicon - + How to deply P3P Configure IIS to use P3P @@ -175,6 +179,7 @@ Setup SSL on IIS 7 Setup SSL on Apache + Online SSL checker diff --git a/Web.config b/Web.config index cd196ea..930ed95 100644 --- a/Web.config +++ b/Web.config @@ -40,6 +40,7 @@ + diff --git a/index.cshtml b/index.cshtml index 74d378a..b3d8642 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 @@ + From e770838dbd1919b4e246d4c27975433f43549875 Mon Sep 17 00:00:00 2001 From: Mads Kristensen Date: Mon, 7 Jan 2013 21:07:46 -0800 Subject: [PATCH 2/7] Supervisor Joost easter egg --- App_Data/items.xml | 2 +- Scripts/script.js | 18 ++++++++++-------- Scripts/script.min.js | 2 +- Web.config | 14 ++------------ index.cshtml | 2 +- 5 files changed, 15 insertions(+), 23 deletions(-) diff --git a/App_Data/items.xml b/App_Data/items.xml index bbca408..59a55d8 100644 --- a/App_Data/items.xml +++ b/App_Data/items.xml @@ -165,7 +165,7 @@ ASP.NET security overview - XSS cheat sheet + XSS cheat sheet DOM based XSS cheat sheet Free XSS scanner 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 @@ - + @@ -50,10 +44,6 @@ - - - - @@ -65,4 +55,4 @@ - + \ No newline at end of file diff --git a/index.cshtml b/index.cshtml index b3d8642..86d62a9 100644 --- a/index.cshtml +++ b/index.cshtml @@ -18,7 +18,7 @@ - + From a61ec7ca2013eaaa8957fcd4b8c42bfbb4e866e5 Mon Sep 17 00:00:00 2001 From: Sayed Ibrahim Hashimi Date: Mon, 7 Jan 2013 21:49:02 -0800 Subject: [PATCH 3/7] adding license --- LICENSE.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 LICENSE.md 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 From 64c4fedae0b0e64e87ca814ec0c84120a653d225 Mon Sep 17 00:00:00 2001 From: Mads Kristensen Date: Mon, 7 Jan 2013 21:59:58 -0800 Subject: [PATCH 4/7] Added Friendly URLs rule --- App_Data/items.xml | 7 ++++++- index.cshtml | 11 +++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/App_Data/items.xml b/App_Data/items.xml index 59a55d8..fc3d85c 100644 --- a/App_Data/items.xml +++ b/App_Data/items.xml @@ -14,7 +14,12 @@ no-www.org Remove "www" in web.config - + + + 11 best practices for URLs + URL rewriting in IIS + URL rewrite in Apache + diff --git a/index.cshtml b/index.cshtml index 86d62a9..3a5dd1c 100644 --- a/index.cshtml +++ b/index.cshtml @@ -43,5 +43,16 @@ + From fc28cb0ef5da4d0fce4892e22cacffc3814d522b Mon Sep 17 00:00:00 2001 From: Mads Kristensen Date: Mon, 7 Jan 2013 22:27:06 -0800 Subject: [PATCH 5/7] Code clean up --- App_Code/Fingerprint.cs | 6 ------ App_Code/WhitespaceModule.cs | 9 ++------- App_Data/items.xml | 14 +++++++------- 3 files changed, 9 insertions(+), 20 deletions(-) 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 fc3d85c..c44d44f 100644 --- a/App_Data/items.xml +++ b/App_Data/items.xml @@ -14,12 +14,7 @@ no-www.org Remove "www" in web.config - - - 11 best practices for URLs - URL rewriting in IIS - URL rewrite in Apache - + @@ -79,7 +74,12 @@ 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 From 9059493ecf646e5f8a67d40739ad405dc6166125 Mon Sep 17 00:00:00 2001 From: Mads Kristensen Date: Mon, 7 Jan 2013 22:32:21 -0800 Subject: [PATCH 6/7] Added author info --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2e155e8..68ab4a3 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** +@sayedihashimi +http://sedodream.com + +**Mads Kristensen** +@mkristensen +http://madskristensen.net \ No newline at end of file From d79951ac282dbaa4c1f4d35af2229ceeffae7e56 Mon Sep 17 00:00:00 2001 From: Mads Kristensen Date: Mon, 7 Jan 2013 22:37:46 -0800 Subject: [PATCH 7/7] Added urls --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 68ab4a3..ded26fd 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,9 @@ Created by: **Sayed Ibrahim Hashimi** -@sayedihashimi http://sedodream.com +@sayedihashimi **Mads Kristensen** -@mkristensen -http://madskristensen.net \ No newline at end of file +http://madskristensen.net +@mkristensen \ No newline at end of file