diff options
Diffstat (limited to 'web')
30 files changed, 0 insertions, 769 deletions
diff --git a/web/cobrands/lichfielddc/css/layout.css b/web/cobrands/lichfielddc/css/layout.css deleted file mode 100644 index 363ab8579..000000000 --- a/web/cobrands/lichfielddc/css/layout.css +++ /dev/null @@ -1,170 +0,0 @@ -#mysociety { - clear: both; -} - -#mysociety #postcodeForm { - padding: 0.8em; - background-color: #F3F4F4; -} - -#mysociety .other-problems { - margin: 2em 8em 0em 8em; - font-weight: bold; -} - -#mysociety #postcodeForm label { - float: none; - margin-bottom: 5px; - width: auto !important; -} - -#mysociety p { - margin: 1em 0px; - padding: 0px; -} - -#mysociety #update_form { - clear: both; -} - -#mysociety #form_sign_in { - padding-top: 2em; -} - -#mysociety form label { - width: 6em; - display: inline; - margin-right: 0px; -} - -#mysociety div.checkbox { - padding-left: 6.5em; -} - -#mysociety textarea, -#mysociety input { - background-color: #f9f9f1; - margin: 4px; -} - -#mysociety #fileupload_normalUI input { - background-color: white; -} - -#mysociety input[type='submit']{ - border: 0px; - color: white; - padding: 3px; - vertical-align: top; - font:150%/1.4em "Trebuchet MS", Helvetica, Arial, Sans-serif; - background:url(http://www.lichfielddc.gov.uk/site/styles/css_img/nav-bg.png) top repeat-x; -} - -#mysociety #expl small { - position: relative; - top: 6px !important; - } - -#mysociety h2 { - background: transparent url(http://www.lichfielddc.gov.uk/site/styles/css_img/lilac-dotted-border.png) bottom repeat-x; - padding:0 0 7px 0 !important; - margin: 22px 0 14px 0 !important; - font-size:1.4em; - } - -#mysociety #front_stats div { - background-color: #f5f5f5; - padding: 5px; - } - -#mysociety #front_stats { - padding: 0 65px; - } - -#mysociety #front_stats div big { - margin-bottom: 4px; - } - -#nav { - font-size: 1em; - margin: 0 0 30px 0 !important; - background: transparent url(/cobrands/lichfielddc/i/bg_header.gif) left repeat-x !important; - clear: both; - width: 100%; - float: left; - border: 1px solid #ccc; - padding: 0; - } - -#nav li { - float: left !important; - list-style-type: none !important; - list-style-image: none !important; - border-right: 1px solid #ccc; - padding: 0; - } - -#nav li a { - border: none !important; - color: #111; - font-weight: bold; - padding: 8px 12px !important; - display: block; - } - -#nav li a:hover { - border-bottom: 1px solid #111; - background: transparent url(/cobrands/lichfielddc/i/bg_header2.gif) left repeat-x !important; - } - -#mysociety #fixed { - padding: 5px !important; - margin: 70px 0 10px 0 !important; - width: 405px; - position: relative; - top: 7px - } - -#mysociety p[style] { - border: none !important; - } - -#mysociety #updates div { - border-bottom: 1px dotted #ccc; - padding: 0 0 17px 0; - margin: 17px 0 0 0; -} - -#mysociety #updates { - margin-bottom: 40px; - } - -#mysociety #updates p { - margin-bottom: 15px; - } - -#map_box ul li p { - margin: 0; - padding: 0; -} - -#mysociety input[type='text'], #mysociety input[type='password'], #mysociety input[type='email'] { - background: #F9F9F1; - border: 1px solid #666 !important; - padding: 5px; - } - -#mysociety input[type='text']:focus, #mysociety input[type='password']:focus, #mysociety input[type='email']:focus { - border:1px solid #000000; - outline:2px solid #98339B; - } - -div#suggest { - border: none !important; - } - -ul.user { - list-style-type: none; - font-size: 80%; - float: right; -} diff --git a/web/cobrands/lichfielddc/i/bg_header.gif b/web/cobrands/lichfielddc/i/bg_header.gif Binary files differdeleted file mode 100644 index e126e5798..000000000 --- a/web/cobrands/lichfielddc/i/bg_header.gif +++ /dev/null diff --git a/web/cobrands/lichfielddc/i/bg_header2.gif b/web/cobrands/lichfielddc/i/bg_header2.gif Binary files differdeleted file mode 100644 index f11508a7f..000000000 --- a/web/cobrands/lichfielddc/i/bg_header2.gif +++ /dev/null diff --git a/web/cobrands/reading/css.scss b/web/cobrands/reading/css.scss deleted file mode 100644 index 96e0fcbba..000000000 --- a/web/cobrands/reading/css.scss +++ /dev/null @@ -1,93 +0,0 @@ -// Generics - -$header_back: #ecf5fd; -$header_back_lighter: #ecf5fd; -$header_colour: #439DC2; -$header_darker: #ecf5fd; - -$map_width: 420px; - -@import "../../css/main-import"; - -p.thirdParty#reading-logo { - margin-top: 0px; - padding-bottom: 0px; -} - -div#header { - border-bottom: solid 1px #CCC; -} - -#header a:link, #header a:visited, div#header { - background-color: transparent; -} - -a { - color: #9C2161; -} - -body { - font-family: Helvetica, Arial, sans-serif; - font-size: 13.5px; - color: black; -} - -#navigation { - margin-top: 8px; - a { - font-weight: bold; - } -} - -#mysociety { - - #map_box { - width: $map_width + 2; - } - - #map { - width: $map_width; - height: $map_width; - } - - dd { - margin-left: 40px; - } - - div { - padding-top: 0.2em; - padding-bottom: 0.2em; - } - - h3 { - font-size: 1.17em; - font-weight: bold; - margin: 1em 0em 1em 0em; - } - - h2 { - font-weight: bold; - margin: 1em 0em 1em 0em; - } - - ul, ol { - padding-left: 2em; - } - - label { - width: 6em; - } - - .fieldset div.checkbox, #problem_submit { - padding-left: 6.5em; - } - - table { - border-collapse: separate; - border-spacing: 1px; - } - - td { - padding: 3px; - } -} diff --git a/web/cobrands/reading/css/print3rdParty.css b/web/cobrands/reading/css/print3rdParty.css deleted file mode 100644 index f5b7ebc83..000000000 --- a/web/cobrands/reading/css/print3rdParty.css +++ /dev/null @@ -1,33 +0,0 @@ -body { - background: white; - font-size: 12pt; - color:#000; - } -#access, -.header .social, .nav, .footer { - display: none; -} -.wrapper, #content { - width: auto; - margin: 0 2%; - padding: 0; - border: 0; - float: none !important; - color: black; - background: transparent none; -} -p#logo img.printMe { display:block; vertical-align: bottom; } -div#content { - margin-left: 5%; - padding-top: 1em; - border-top: 1px solid #9c2161; -} -p#logo { - margin-bottom: -8px; -} -a:link, a:visited { - color: #9c2161; - background: transparent; - font-weight: bold; - text-decoration: underline; -}
\ No newline at end of file diff --git a/web/cobrands/reading/css/reading.css b/web/cobrands/reading/css/reading.css deleted file mode 100644 index 4daef13c9..000000000 --- a/web/cobrands/reading/css/reading.css +++ /dev/null @@ -1,176 +0,0 @@ -html, body, div, span, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, -small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, figcaption, figure, -footer, header, hgroup, menu, nav, section, summary, -time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} -article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { - display: block; -} -blockquote, q { quotes: none; } -blockquote:before, blockquote:after, -q:before, q:after { content: ''; content: none; } -ins { background-color: #ff9; color: #000; text-decoration: none; } -mark { background-color: #ff9; color: #000; font-style: italic; font-weight: bold; } -del { text-decoration: line-through; } -abbr[title], dfn[title] { border-bottom: 1px dotted; cursor: help; } -table { border-collapse: collapse; border-spacing: 0; } -hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; } -input, select { vertical-align: middle; } -body { font:13px/1.231 sans-serif; *font-size:small; } -select, input, textarea, button { font:99% sans-serif; } -pre, code, kbd, samp { font-family: monospace, sans-serif; } -html { overflow-y: scroll; } -a:hover, a:active { outline: none; } -ul, ol { margin-left: 0; } -ol { list-style-type: decimal; } -nav ul, nav li, -.nav ul, .nav li{ margin: 0; list-style:none; list-style-image: none; } -small { font-size: 85%; } -strong, th { font-weight: bold; } -td { vertical-align: top; } -sub, sup { font-size: 75%; line-height: 0; position: relative; } -sup { top: -0.5em; } -sub { bottom: -0.25em; } -pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; padding: 15px; } -textarea { overflow: auto; } -.ie6 legend, .ie7 legend { margin-left: -7px; } -input[type="radio"] { vertical-align: text-bottom; } -input[type="checkbox"] { vertical-align: bottom; } -.ie7 input[type="checkbox"] { vertical-align: baseline; } -.ie6 input { vertical-align: text-bottom; } -label, input[type="button"], input[type="submit"], input[type="image"], button { cursor: pointer; } -button, input, select, textarea { margin: 0; } -input:valid, textarea:valid { } -input:invalid, textarea:invalid { border-radius: 1px; -moz-box-shadow: 0px 0px 5px red; -webkit-box-shadow: 0px 0px 5px red; box-shadow: 0px 0px 5px red; } -.no-boxshadow input:invalid, .no-boxshadow textarea:invalid { background-color: #f0dddd; } -button { width: auto; overflow: visible; } -img { -ms-interpolation-mode: bicubic; } -body { - margin:0; - padding:0; - font:normal 14px Helvetica, Arial, serif; -} - - - -/*Main Structure*/ -.wrapper { - max-width: 1376px; - margin-bottom:20px; -} -header, nav, footer, -.header, .nav, .footer, -#content{ - margin:0 20px; -} - - -.header {} - -p#reading-logo{ - text-indent:-9999px; - background:url("/cobrands/reading/images/reading-borough-council-logo.gif") top left no-repeat; - width:176px; - padding-bottom:20px; -} -p.thirdParty#reading-logo { margin-top:35px;} -p#reading-logo img.printMe { display:none;} -p#reading-logo a{ - display:block; - height:38px; -} - -#content{ - margin-top:30px; -} -#content h1 { - font-weight: bold; - font-size:1.6em; - margin-bottom:1em; -} -.thirdParty { } -.thirdParty p { margin-bottom:1em;} - .footer .contact { - width:44%!important; - } - .footer .links { - width:55%!important; - margin-right:0!important; - } - .footer .links ul li { - display:inline; - font-size:12px; - margin-right:3px; - border-right:1px solid #999; - padding-right:4px; - } - .footer .links ul li.last { - margin-right:0; - border:none; - paddin-right:0; - } - .footer .partners { - width:100%!important; - } -footer, -.footer{ - margin-top:15px; -} -footer h3, -.footer h3{ - border-bottom:1px solid #b4b4b4; - padding-bottom:3px; - margin-bottom:10px; -} -footer p.title, -.footer p.title{ - border-bottom:1px solid #b4b4b4; - padding-bottom:3px; - margin-bottom:10px; -} -footer .contact, -.footer .contact { - width:38.9%; - margin-top:15px; -} -footer .links, -.footer .links { - width:15%; - margin-top:15px; -} -footer .partners, -.footer .partners { - width:44%; - margin-top:15px; -} -footer h4, -.footer h4 {display:inline;} -footer .contact, -footer .links, -.footer .contact, -.footer .links { - margin-right:1%; -} -footer .contact address, footer .contact .phone, -.footer .contact address, .footer .contact .phone{ - width:49%; -} -footer .contact,footer .links,footer .contact address,footer .contact .phone,footer .partners, -.footer .contact,.footer .links,.footer .contact address,.footer .contact .phone,.footer .partners{ - float:left; - font-style:normal -} -.clear { clear:both;} - diff --git a/web/cobrands/reading/images/favicon.ico b/web/cobrands/reading/images/favicon.ico Binary files differdeleted file mode 100755 index 2619d70e9..000000000 --- a/web/cobrands/reading/images/favicon.ico +++ /dev/null diff --git a/web/cobrands/reading/images/reading-borough-council-logo.gif b/web/cobrands/reading/images/reading-borough-council-logo.gif Binary files differdeleted file mode 100644 index 8532e63ea..000000000 --- a/web/cobrands/reading/images/reading-borough-council-logo.gif +++ /dev/null diff --git a/web/cobrands/southampton/SCClogo.png b/web/cobrands/southampton/SCClogo.png Binary files differdeleted file mode 100644 index 74a037a8c..000000000 --- a/web/cobrands/southampton/SCClogo.png +++ /dev/null diff --git a/web/cobrands/southampton/accessInfo.gif b/web/cobrands/southampton/accessInfo.gif Binary files differdeleted file mode 100644 index 418698ed5..000000000 --- a/web/cobrands/southampton/accessInfo.gif +++ /dev/null diff --git a/web/cobrands/southampton/bg-box.gif b/web/cobrands/southampton/bg-box.gif Binary files differdeleted file mode 100644 index 559a5ae00..000000000 --- a/web/cobrands/southampton/bg-box.gif +++ /dev/null diff --git a/web/cobrands/southampton/bg-button.gif b/web/cobrands/southampton/bg-button.gif Binary files differdeleted file mode 100644 index f5f8122dc..000000000 --- a/web/cobrands/southampton/bg-button.gif +++ /dev/null diff --git a/web/cobrands/southampton/bg-footer.gif b/web/cobrands/southampton/bg-footer.gif Binary files differdeleted file mode 100644 index 89919c1cd..000000000 --- a/web/cobrands/southampton/bg-footer.gif +++ /dev/null diff --git a/web/cobrands/southampton/bg-header.jpg b/web/cobrands/southampton/bg-header.jpg Binary files differdeleted file mode 100644 index 70e0ec46a..000000000 --- a/web/cobrands/southampton/bg-header.jpg +++ /dev/null diff --git a/web/cobrands/southampton/bg-input.gif b/web/cobrands/southampton/bg-input.gif Binary files differdeleted file mode 100644 index 267fe9b6b..000000000 --- a/web/cobrands/southampton/bg-input.gif +++ /dev/null diff --git a/web/cobrands/southampton/bg-repeat.gif b/web/cobrands/southampton/bg-repeat.gif Binary files differdeleted file mode 100644 index b68346517..000000000 --- a/web/cobrands/southampton/bg-repeat.gif +++ /dev/null diff --git a/web/cobrands/southampton/blue-line.gif b/web/cobrands/southampton/blue-line.gif Binary files differdeleted file mode 100644 index c7a587ee5..000000000 --- a/web/cobrands/southampton/blue-line.gif +++ /dev/null diff --git a/web/cobrands/southampton/bullet.gif b/web/cobrands/southampton/bullet.gif Binary files differdeleted file mode 100644 index a86ef002b..000000000 --- a/web/cobrands/southampton/bullet.gif +++ /dev/null diff --git a/web/cobrands/southampton/bulletActiveSG.gif b/web/cobrands/southampton/bulletActiveSG.gif Binary files differdeleted file mode 100644 index 6f4e3e438..000000000 --- a/web/cobrands/southampton/bulletActiveSG.gif +++ /dev/null diff --git a/web/cobrands/southampton/css.scss b/web/cobrands/southampton/css.scss deleted file mode 100644 index 2fc569190..000000000 --- a/web/cobrands/southampton/css.scss +++ /dev/null @@ -1,75 +0,0 @@ -$map_width: 420px; -$background: #E9EEF7; -$darker: #768EB5; - -#mysociety { - - // Smaller map - - #map_box { - width: $map_width + 2px; - margin-bottom: 10px; - } - #map, #drag { - width: $map_width; - height: $map_width; - } - - p#fixed, p#unknown { - margin-right: $map_width + 22px; - width: auto; - } - - #problem_form { - clear: both; - } - - // Generics - - h1 { - margin: 0; - font-size: 175%; - } - h2 { - font-size: 140%; - } - - select, input, textarea { - font-size: 99%; - } - - a.unsuitable-report { - font-size: small; - } - - blockquote { - border-left: solid 4px $darker; - } - - .a { - color: #000000; - background-color: $background; - } - - #postcodeForm { - background-color: $background; - } - - #front_stats div { - background-color: $background; - width: 6em; - padding: 0.5em; - } - - #update_form { - clear: right; - } - - .update-img { - text-align: left; - } - - .news { - padding: 1em 1em 0em 1em; - } -} diff --git a/web/cobrands/southampton/css/style.css b/web/cobrands/southampton/css/style.css deleted file mode 100644 index 8bdf19aa6..000000000 --- a/web/cobrands/southampton/css/style.css +++ /dev/null @@ -1,87 +0,0 @@ -body {font-family:Verdana, Geneva, sans-serif; font-size:62.5%;}
-
-a {text-decoration:none; color:#1c4384; font-weight:bold;}
-
-a:hover {text-decoration:underline;}
-
-p {margin:0 0 10px 0;}
-
-/* ******* Start of Header ******* */
-
-ul#topMenu {width:860px; height:15px; margin:13px auto 3px auto;}
-ul#topMenu li {float:left; list-style-type:none;}
-ul#topMenu a {padding:0 5px 2px 5px; font-size:0.9em; color:#000; font-weight:400;}
-
-#wrapper {width:960px; height:auto; margin:0 auto; background:url(../bg-repeat.gif) repeat-y;}
-#header {width:100%; height:176px; background:url(../bg-header.jpg) no-repeat; background-position:1px 0px;}
-#header .logo {float:left; width:87px; height:81px; margin:25px 0 17px 46px;}
-#header a.siteTitle {height:27px; width:287px; background:url(../logo.png) no-repeat; display:block; font-family:verdana; float:left; margin:60px 0 0 15px; text-indent:-9999px;}
-
-a.mctv {float:right; height:37px; width:104px; margin:15px 7px 0 0;}
-a.mctv img {border:none;}
-
-#searchWrap {width:210px; height:auto; float:right; margin:10px 30px 0 0;}
-#searchWrap form {border:none; padding:0; margin:0 0 10px 0;}
-#searchWrap fieldset {border:none; padding:0; margin:0;}
-#searchWrap label {color:#1b4384; font-weight:700; font-size:1.1em; margin:0; padding:0;}
-#searchWrap input {float:left; background:url(../bg-input.gif) repeat-x; margin:3px 0 0 0; line-height:16px; padding:3px 5px 3px 4px;}
-#searchWrap .button {background:url(../bg-button.gif) repeat-x; margin:3px 0 0 5px; float:left; height:26px; padding:0 3px 4px 3px; color:#fff; border:none;}
-
-.moreInfo {margin:0 0 -2px 2px;}
-.text {width:109px; color:#999;}
-.text2 {width:137px; color:#999;}
-
-ul#topNav {width:870px; height:40px; background:#1b4384; clear:both; margin:0 auto; padding:3px 0 1px 0;}
-ul#topNav li {float:left; list-style-type:none; background:url(../line.gif) no-repeat 0 2px;}
-ul#topNav li:first-child {background:none;}
-ul#topNav li a {color:#ffffff; font-size:1.2em; padding:0 7px 0 8px; font-size:1.2em; font-weight:400;}
-
-p.atoz {float:left; margin:8px 0 0 43px; padding:5px 5px 3px 0; font-size:1.2em; border-bottom:1px solid #E0DBEF;}
-ul#atoz {width:420px; float:left; margin:13px 0 0 0; border-bottom:1px solid #E0DBEF; padding:0 0 1px 0;}
-ul#atoz li {list-style-type:none; display:inline;}
-ul#atoz li a {font-size:13px; font-weight:400;}
-
-ul#contacts {float:right; margin:13px 36px 0 0; padding:0;}
-ul#contacts li {float:left; list-style-type:none; background:url(../blue-line.gif) no-repeat 0 2px;}
-ul#contacts li:first-child {background:none;}
-ul#contacts li a {font-size:1.2em; padding:0 8px 0 10px; font-weight:400;}
-
-/* ******* End of Header ******* */
-
-
-
-/* ******* Start of Left Menu Bar ******* */
-
-#menuBar {width:200px; height:auto; float:left; margin:25px 0 0 43px; padding-bottom:25px; clear:both; }
-
-ul#leftMenu {height:auto; width:199px; float:left; background:#e9eef7 url(../bg-box.gif) no-repeat -1px 100%; padding:0 0 10px 0; margin:5px 0 0 0; overflow:hidden;}
-ul#leftMenu li {list-style-type:none; width:199px; padding:0;}
-ul#leftMenu li a {display:block; width:100%; line-height:1.5em; padding:3px 10px 3px 32px; font-size:1.2em; font-weight:700;}
-ul#leftMenu li.parent {background:url(../bulletActiveSG.gif) no-repeat #768eb5; background-position:10px 11px; color:#fff; padding:3px 0 3px 0;}
-ul#leftMenu li.parent a {color:#fff}
-ul#leftMenu li.selected {background:url(../bullet.gif) no-repeat; background-position:10px 8px; color:#fff; padding:0;}
-
-/* ******* End of Left Menu Bar ******* */
-
-
-
-/* ******* Start of Main Content Area ******* */
-
-#contentArea {width:640px; height:auto; float:left; padding-bottom:25px; font-size:1.1em; margin:15px 0 0 0; padding:15px 0 20px 25px;}
-
-/* ******* End of Main Content Area ******* */
-
-
-
-/* ******* Start of Footer ******* */
-
-#footer {width:100%; height:54px; clear:both; background:url(../bg-footer.gif) no-repeat;}
-
-a.accessInfo {float:left; height:32px; width:117px; margin:0 10px 0 43px;}
-a.accessInfo img {border:none;}
-
-ul#bottomMenu {float:left; margin:10px 0 0 10px;}
-ul#bottomMenu li {float:left; list-style-type:none;}
-ul#bottomMenu a {padding:0 4px 2px 4px; font-size:0.9em; color:#000; font-weight:400;}
-
-/* ******* End of Footer ******* */
diff --git a/web/cobrands/southampton/ff.png b/web/cobrands/southampton/ff.png Binary files differdeleted file mode 100644 index ef7d91148..000000000 --- a/web/cobrands/southampton/ff.png +++ /dev/null diff --git a/web/cobrands/southampton/forms.png b/web/cobrands/southampton/forms.png Binary files differdeleted file mode 100644 index 4f278e9ae..000000000 --- a/web/cobrands/southampton/forms.png +++ /dev/null diff --git a/web/cobrands/southampton/ie6.png b/web/cobrands/southampton/ie6.png Binary files differdeleted file mode 100644 index d6179fa02..000000000 --- a/web/cobrands/southampton/ie6.png +++ /dev/null diff --git a/web/cobrands/southampton/information.gif b/web/cobrands/southampton/information.gif Binary files differdeleted file mode 100644 index ea2f14bd2..000000000 --- a/web/cobrands/southampton/information.gif +++ /dev/null diff --git a/web/cobrands/southampton/line.gif b/web/cobrands/southampton/line.gif Binary files differdeleted file mode 100644 index fa6ddca0c..000000000 --- a/web/cobrands/southampton/line.gif +++ /dev/null diff --git a/web/cobrands/southampton/logo.png b/web/cobrands/southampton/logo.png Binary files differdeleted file mode 100644 index 71bdc9d97..000000000 --- a/web/cobrands/southampton/logo.png +++ /dev/null diff --git a/web/cobrands/southampton/mctv.png b/web/cobrands/southampton/mctv.png Binary files differdeleted file mode 100644 index 17f3ecec6..000000000 --- a/web/cobrands/southampton/mctv.png +++ /dev/null diff --git a/web/cobrands/southampton/safari.png b/web/cobrands/southampton/safari.png Binary files differdeleted file mode 100644 index e99547a7f..000000000 --- a/web/cobrands/southampton/safari.png +++ /dev/null diff --git a/web/js/southampton.js b/web/js/southampton.js deleted file mode 100644 index ac7292f5d..000000000 --- a/web/js/southampton.js +++ /dev/null @@ -1,135 +0,0 @@ -/* - * southampton.js - * FixMyStreet JavaScript for Southampton - */ - -function update_category_extra(msg) { - var content = '<div style="margin: 1em 0em 1em 6.5em"><strong>' + msg + '</strong></div>'; - var el = $('#category_extra'); - if ( el.length ) { - el.html( content ); - } else { - var cat_extra = '<div id="category_extra" style="margin:0; display_none;">' + - content + - '</div>'; - $('#form_title').closest('div.form-field').after(cat_extra); - } - $('#category_extra').show('fast'); -} - -function check_depth() { - var depth = $(this).val(); - if ('Deeper than a tennis ball' == depth) { - var content = '<div style="margin: 1em 0em 1em 6.5em"><strong>' + - 'Please contact Actionline on 0800 5 19 19 19 so your report can be dealt with urgently' + - '</strong></div>'; - var depth_extra = $('#depth_extra'); - if ( depth_extra.length ) { - depth_extra.html( content ); - depth_extra.show('fast'); - } else { - $('#form_depth').after( '<div id="depth_extra">' + content + '</div>' ); - } - } else { - $('#depth_extra').hide('fast'); - } -} - -$(function(){ - - $('[placeholder]').focus(function(){ - var input = $(this); - if (input.val() == input.attr('placeholder')) { - input.val(''); - input.removeClass('placeholder'); - input.css({ 'color': '#000000' }); - } - }).blur(function(){ - var input = $(this); - if (input.val() === '' || input.val() == input.attr('placeholder')) { - input.css({ 'color': '#999999' }); - input.val(input.attr('placeholder')); - } - }).blur(); - - // use on() here because the #form_category may be replaced - // during the page's lifetime - $("#problem_form").on("change.southampton", "select#form_category", - function() { - $('#form_sign_in').show('fast'); - $('#problem_submit').show('fast'); - $('#street_light_report').hide('fast'); - $('#depth_extra').hide('fast'); - $('#category_extra').hide('fast'); - var category = $(this).val(); - if ('Potholes' == category) { - var content = - '<div class="form-field"><label for="form_size">Size:</label>' + - '<select name="detail_size"><option>-- Please select --<option>Unknown' + - '<option>Small: No larger than a dinner plate (up to 30cm/12inches)' + - '<option>Medium: No larger than a dustbin lid (up to 60cm/24inches)' + - '<option>Large: Larger than a dustbin lid (over 60cm/24inches)' + - '</select></div>' + - '<div class="form-field"><label for="form_depth">Depth:</label>' + - '<select id="form_depth" name="detail_depth"><option>-- Please select --<option>Unknown' + - '<option>No deeper than a golf ball (up to 4cm/1.5inches)' + - '<option>No deeper than a tennis ball (up to 6.5cm/2.5inches)' + - '<option>Deeper than a tennis ball' + - '</select></div>'; - if (!$('#category_extra').length) { - var qns = '<div id="category_extra" style="margin:0; display:none;">' + - content + - '</div>'; - $('#form_title').closest('div.form-field').after(qns); - } else { - $('#category_extra').html( content ); - } - $('#category_extra').show('fast'); - $('#form_depth').on('change', check_depth ); - } else if ('Fly Tipping' == category) { - update_category_extra( 'Please list/detail items fly-tipped in the description box & if it has been left on council or private property (if you know).' ); - } else if ('Litter' == category) { - update_category_extra( 'Please detail the type of litter. If you are reporting broken glass, syringes, oil spills or human excrement, please contact Actionline on 0800 5 19 19 19 so your report can be dealt with.' ); - } else if ('Leaves' == category) { - update_category_extra( 'Please give as much information as you can, e.g. approximate quantity in bin bags. Thank you' ); - } else if ('Dead animals' == category) { - update_category_extra( 'Please give as much information as you can, e.g. which animal, on road or pavement. Thank you' ); - } else if ('Shopping trolleys' == category) { - update_category_extra( 'Please give as much information as you can, e.g. which supermarket. Thank you' ); - } else if ('Bollards' == category) { - update_category_extra( 'Please give as much information as you can, e.g. are they lit, metal or concrete. Thank you' ); - } else if ('Overhanging vegetation' == category) { - update_category_extra( 'Please give as much information as you can, e.g. is it coming from a private property or open area. Thank you' ); - } else if ('Graffiti' == category) { - var graffiti_content = - '<div class="form-field"><label for="form_offensive">Is it racist/ offensive:</label>' + - '<select name="detail_offensive"><option>-- Please select --' + - '<option>Yes<option>No</select></div>'; - if (!$('#category_extra').length) { - var graffiti_qns = '<div id="category_extra" style="margin:0; display:none;">' + - graffiti_content + - '</div>'; - $('#form_title').closest('div.form-field').after(graffiti_qns); - } else { - $('#category_extra').html( graffiti_content ); - } - $('#category_extra').show('fast'); - } else if ('Street lighting' == category) { - $('#form_sign_in').hide('fast'); - $('#problem_submit').hide('fast'); - $('#category_extra').hide('fast'); - var lighting_content = - '<div id="street_light_report" style="margin: 1em 0em 1em 6.5em">Please report Street light problems using the Southampton Street Lighting site at: <a href="http://www.lightsoninsouthampton.co.uk/Public/ReportFault.aspx">http://www.lightsoninsouthampton.co.uk/Public/ReportFault.aspx</a></div>'; - if ( $('#form_category_row').count ) { - $('#form_category_row').after(lighting_content); - } else { - $('#form_category:parent').after(lighting_content); - } - } else { - $('#category_extra').hide('fast'); - } - } - ).change(); // change called to trigger (in case we've come in with potholes selected) - -}); - |