-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
236 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.mw_news { | ||
#bread { | ||
font-size: 12px; | ||
|
||
a { | ||
color: $dark_red; | ||
} | ||
|
||
.mw_chevron { | ||
color: $dark_grey; | ||
} | ||
} | ||
|
||
.mw_title { | ||
color: $dark_grey; | ||
font-size: 16px; | ||
font-weight: bold; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
.mw_tts_register { | ||
|
||
.mw_content { | ||
padding: 10px; | ||
// background-color: $dark_grey; | ||
overflow: hidden; | ||
} | ||
|
||
.mw_special_needs { | ||
border: 1px solid #494949; | ||
padding: 5px; | ||
margin: 10px 0px; | ||
font-size: 12px; | ||
color: #494949; | ||
} | ||
|
||
.mw_form_row { | ||
overflow: hidden; | ||
margin: 5px 0px; | ||
|
||
.mw_label { | ||
vertical-align: middle; | ||
width: 30%; | ||
display: inline-block; | ||
} | ||
|
||
.mw_input { | ||
vertical-align: middle; | ||
padding-left: 5px; | ||
width: 66%; | ||
display: inline-block; | ||
} | ||
|
||
textarea { | ||
height: 65px; | ||
width: 99%; | ||
margin: 5px 0px; | ||
@include border-radius(3px); | ||
} | ||
} | ||
|
||
.mw_radio_labels { | ||
display: inline; | ||
padding-left: 2px; | ||
padding-right: 10px; | ||
} | ||
|
||
.mw_side_note { | ||
font-size: 11px; | ||
color: $dark_red; | ||
text-align: right; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
$("./body") { | ||
// News pages | ||
add_class("mw_news") | ||
|
||
$("./div[@class='mw_content']") { | ||
move_here("./ancestor::body//div[starts-with(@id, 'innerWrapper')]/div[starts-with(@id, 'centerCol')]/div[@id='bread']") { | ||
wrap_text_children("span", class: "mw_chevron") { | ||
text() { | ||
replace(/>>/, "»") | ||
} | ||
} | ||
} | ||
move_here("./ancestor::body//div[starts-with(@id, 'innerWrapper')]/div[starts-with(@id, 'centerCol')]//h1") { | ||
add_class("mw_title") | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
$("./body") { | ||
// TTS Register Page | ||
add_class("mw_tts_register") | ||
|
||
$("./div[@class='mw_content']") { | ||
// Special Needs box - lets put this at the top so that its notable | ||
move_here("./ancestor::body//div[@id='pageContentWrapper']/div") { | ||
remove("./@style") | ||
add_class("mw_special_needs") | ||
} | ||
|
||
move_here("./ancestor::body//div[@id='pageContentWrapper']/form") { | ||
$("./table[1]//td[1]") { | ||
name("div") | ||
add_class("mw_registration_info") | ||
move_to("./ancestor::table", "before") | ||
} | ||
|
||
$("./table[2]/tr") { | ||
name("div") | ||
add_class("mw_form_row") | ||
|
||
// The first row of this table has a table with one row of information we want | ||
$(".//table//tr[1]//strong") { | ||
add_class("mw_form_label") | ||
wrap("div", class: "mw_form_info") { | ||
move_here("./ancestor::table/following-sibling::strong") | ||
move_to("./ancestor::body//div[contains(@class, 'mw_registration_info')]", "after") | ||
} | ||
} | ||
|
||
remove(".//table/ancestor::div[contains(@class, 'mw_form_row')]") | ||
|
||
$("./td[1]") { | ||
name("div") | ||
add_class("mw_label") | ||
remove("./@valign | ./@align") | ||
|
||
inner() { | ||
replace(/<br>/, " ") | ||
} | ||
|
||
$("./span") { | ||
remove("./@style") | ||
add_class("mw_side_note") | ||
move_to("./ancestor::div[contains(@class, 'mw_form_row')]", "bottom") | ||
} | ||
|
||
$("./self::div[input]") { | ||
attributes(class: "mw_hidden_info") | ||
move_to("./ancestor::form", "bottom") | ||
} | ||
} | ||
|
||
$("./td") { | ||
name("div") | ||
add_class("mw_input") | ||
remove("./br") | ||
|
||
$("./self::div[input[@type='radio']]") { | ||
wrap_text_children("div", class: "mw_radio_labels") { | ||
text() { | ||
replace(/\s*$/, "") | ||
} | ||
|
||
remove("./self::div[text()='']") | ||
} | ||
$("./input") { | ||
$value = fetch("./@value") | ||
move_here("./following-sibling::div[text() = "+$value+"]", "after") | ||
log("//div[text() = "+$value+"]") | ||
} | ||
} | ||
|
||
$("./textarea") { | ||
remove("./@rows | ./@cols") | ||
} | ||
|
||
$("./span") { | ||
remove("./@style") | ||
add_class("mw_side_note") | ||
move_to("./ancestor::div[contains(@class, 'mw_form_row')]", "bottom") | ||
} | ||
|
||
inner() { | ||
replace(/ /, "") | ||
} | ||
} | ||
|
||
move_to("./ancestor::table", "before") | ||
} | ||
|
||
remove("./table") | ||
} | ||
} | ||
|
||
remove(".//div[@id='pageContainer']") | ||
} |