Browse code

Another massive commit:

1. Major improvements to the responsive styling.
2. Toggleable sidebar
3. Upgraded to modernizr 2.0 which includes Respond.js
4. IE7-9 testing and fixes
5. New theming system which should make forkers happy
6. New rake task for installing Octopress themes
7. Magic

Brandon Mathis authored on 07/06/2011 at 14:45:01
Showing 68 changed files
... ...
@@ -1,12 +1,12 @@
1
-site
2 1
 .bundle
3 2
 .DS_Store
4 3
 .sass-cache
4
+.gist_cache
5
+_cache
6
+source
7
+sass
8
+public
5 9
 source/_stash
6
-source/stylesheets
7 10
 source/javascripts/libs/node_modules
8 11
 source/javascripts/libs/syntax-highlighter
9 12
 vendor/ruby
10
-_cache
11
-.gist_cache
12
-public
... ...
@@ -29,18 +29,40 @@ def ok_failed(condition)
29 29
   end
30 30
 end
31 31
 
32
+desc "Initial setup for Octopress: copies the default theme into the path of Jekyll's generator. rake install defaults to rake install[classic] to install a different theme run rake install[some_theme_name]"
33
+task :install, :theme do |t, args|
34
+  # copy theme into working Jekyll directories
35
+  theme = args.theme || 'classic'
36
+  puts "## Copying "+theme+" theme to Jekyll paths"
37
+  system "cp -R themes/"+theme+"/source source"
38
+  system "cp -R themes/"+theme+"/sass sass"
39
+  system "cp -R themes/"+theme+"/_plugins/ _plugins/"
40
+
41
+  # The directories source and sass are ignored for development, but when Octopress is installed
42
+  # Users must be able to commit these directories, so this removes those lines from the gitignore
43
+  puts "## Cleaning up..."
44
+  new_content = ""
45
+  File.read('.gitignore').each_line do |e|
46
+    new_content << e unless e.strip == 'source' || e.strip == 'sass'
47
+  end
48
+  File.open('.gitignore', 'w') do |io|
49
+    io << new_content
50
+  end
51
+end
52
+
32 53
 ## if you're deploying with github, change the default deploy to push_github
33 54
 desc "default push task"
34 55
 task :push => [:push_rsync] do
35 56
 end
36 57
 
37 58
 desc "Generate and deploy task"
38
-task :deploy => [:integrate, :generate, :clean_debug, :push] do
59
+task :deploy => [:integrate, :generate, :push] do
39 60
 end
40 61
 
41
-desc "generate website in output directory"
42
-task :generate => [:generate_site, :generate_style] do
43
-  puts ">>> Site Generating Complete! <<<\n\n>>> Refresh your browser <<<"
62
+desc "Generate jekyll site"
63
+task :generate do
64
+  puts "## Generating Site with Jekyll"
65
+  system "jekyll"
44 66
 end
45 67
 
46 68
 # usage rake post[my-new-post] or rake post['my new post'] or rake post (defaults to "new-post")
... ...
@@ -78,29 +100,6 @@ task :list do
78 78
   puts "(type rake -T for more detail)\n\n"
79 79
 end
80 80
 
81
-desc "remove files in output directory"
82
-task :clean do
83
-  puts ">>> Removing output <<<"
84
-  Dir["#{site}/*"].each { |f| rm_rf(f) }
85
-end
86
-
87
-task :clean_debug do
88
-  puts ">>> Removing debug pages <<<"
89
-  Dir["#{site}/test"].each { |f| rm_rf(f) }
90
-end
91
-
92
-desc "Generate styles only"
93
-task :generate_style do
94
-  puts ">>> Generating styles <<<"
95
-  system "compass compile"
96
-end
97
-
98
-desc "Generate site files only"
99
-task :generate_site => [:clean, :generate_style] do
100
-  puts "\n\n>>> Generating site files <<<"
101
-  system "jekyll"
102
-end
103
-
104 81
 desc "Watch the site and regenerate when it changes"
105 82
 task :watch do
106 83
   system "trap 'kill $jekyllPid $guardPid $compassPid' Exit; jekyll --auto & jekyllPid=$!; compass watch & compassPid=$!; guard & guardPid=$!; wait"
... ...
@@ -108,35 +107,35 @@ end
108 108
 
109 109
 desc "generate and deploy website via rsync"
110 110
 multitask :push_rsync do
111
-  puts ">>> Deploying website via Rsync <<<"
111
+  puts "## Deploying website via Rsync"
112 112
   ok_failed system("rsync -avz --delete #{site}/ #{ssh_user}:#{document_root}")
113 113
 end
114 114
 
115 115
 desc "deploy website to github user pages"
116 116
 multitask :push_github do
117
-  puts ">>> Deploying #{deploy_branch} branch to Github Pages <<<"
117
+  puts "## Deploying #{deploy_branch} branch to Github Pages "
118 118
   require 'git'
119 119
   repo = Git.open('.')
120
-  puts "\n>>> Checking out #{deploy_branch} branch <<<\n"
120
+  puts "\n## Checking out #{deploy_branch} branch \n"
121 121
   repo.branch("#{deploy_branch}").checkout
122 122
   (Dir["*"] - ["#{site}"]).each { |f| rm_rf(f) }
123 123
   Dir["#{site}/*"].each {|f| mv(f, ".")}
124 124
   rm_rf("#{site}")
125
-  puts "\n>>> Moving generated /#{site} files <<<\n"
125
+  puts "\n## Moving generated /#{site} files \n"
126 126
   Dir["**/*"].each {|f| repo.add(f) }
127 127
   repo.status.deleted.each {|f, s| repo.remove(f)}
128
-  puts "\n>>> Commiting: Site updated at #{Time.now.utc} <<<\n"
128
+  puts "\n## Commiting: Site updated at #{Time.now.utc} \n"
129 129
   message = ENV["MESSAGE"] || "Site updated at #{Time.now.utc}"
130 130
   repo.commit(message)
131
-  puts "\n>>> Pushing generated /#{site} files to #{deploy_branch} branch <<<\n"
131
+  puts "\n## Pushing generated /#{site} files to #{deploy_branch} branch\n"
132 132
   repo.push
133
-  puts "\n>>> Github Pages deploy complete <<<\n"
133
+  puts "\n## Github Pages deploy complete\n"
134 134
   repo.branch("#{source_branch}").checkout
135 135
 end
136 136
 
137 137
 desc "start up a web server on the output files"
138 138
 task :start_server => :stop_server do
139
-  print "Starting serve..."
139
+  print "## Starting serve..."
140 140
   system("serve #{site} #{port} > /dev/null 2>&1 &")
141 141
   sleep 1
142 142
   pid = `ps auxw | awk '/bin\\/serve #{site} #{port}/ { print $2 }'`.strip
... ...
@@ -148,9 +147,9 @@ desc "stop the web server"
148 148
 task :stop_server do
149 149
   pid = `ps auxw | awk '/bin\\/serve #{site} #{port}/ { print $2 }'`.strip
150 150
   if pid.empty?
151
-    puts "Adsf is not running"
151
+    puts "## Adsf is not running"
152 152
   else
153
-    print "Stoping adsf..."
153
+    print "## Stoping adsf..."
154 154
     ok_failed system("kill -9 #{pid}")
155 155
   end
156 156
 end
... ...
@@ -1,25 +1,41 @@
1
+# Required configuration
1 2
 source: source
2 3
 destination: public
3
-markdown: rdiscount
4
-pygments: true
5 4
 
6 5
 url: http://yoursite.com
7 6
 title: My Octopress Blog
8 7
 author: Your Name
9
-email: you@domain.com #Add your email (optional) for the atom feed
8
+subscribe_rss: /atom.xml
9
+subscribe_email: http://feedburner.com/asdfasdf
10
+
11
+markdown: rdiscount
12
+pygments: true
13
+recent_posts: 1
10 14
 simple_search: http://google.com/search
11 15
 
12
-recent_posts: 20
16
+# Optional configurations
13 17
 
14
-twitter_user: imathis
15
-tweet_count: 3
16
-show_replies: false
18
+# For RSS
19
+email:
17 20
 
21
+# Twitter
22
+#twitter_user: imathis
23
+twitter_tweet_count: 4
24
+twitter_show_replies: false
25
+twitter_follow_button: true
26
+twitter_show_follower_count: false
27
+twitter_tweet_button: true
28
+
29
+# Pinboard
30
+#pinboard_user: imathis
31
+pinboard_count: 3
32
+
33
+# Delicious
18 34
 delicious_user:
19 35
 delicious_count: 3
20 36
 
21
-pinboard_user: imathis
22
-pinboard_count: 3
37
+# Disqus Comments
38
+disqus_short_name:
23 39
 
24
-#disqus_short_name: designenthusiast
40
+# Google Analytics
25 41
 google_analytics_tracking_id:
26 42
deleted file mode 100644
... ...
@@ -1,17 +0,0 @@
1
-@import "compass";
2
-
3
-
4
-@include global-reset;
5
-
6
-@include reset-html5;
7
-
8
-/* SASS mixins */
9
-//@import "library/typography";
10
-
11
-/* primary SASS */
12
-//@import "theme";
13
-//@import "typography";
14
-@import "themes/classic/style";
15
-
16
-/* specific SASS */
17
-//@import "partials";
18 1
deleted file mode 100644
... ...
@@ -1,12 +0,0 @@
1
-//@import "partials/shared";
2
-//@import "partials/search";
3
-
4
-/* layout partials */
5
-@import "partials/header";
6
-@import "partials/navigation";
7
-@import "partials/page";
8
-@import "partials/sidebar";
9
-@import "partials/blog";
10
-@import "partials/footer";
11
-
12
-@import "partials/syntax";
13 1
deleted file mode 100644
... ...
@@ -1,4 +0,0 @@
1
-@import "core/theme";
2
-@import "core/layout";
3
-@import "core/typography";
4
-@import "partials";
5 1
deleted file mode 100644
... ...
@@ -1,94 +0,0 @@
1
-a {
2
-  color: $link_color;
3
-  &:hover, &:focus {
4
-    color: saturate(darken($link_color, 15), 20); }
5
-  &:visited {
6
-    color: darken(adjust_hue($link_color, 70), 10);
7
-  }
8
-}
9
-
10
-$min-width: 320px;
11
-$max-width: 1440px;
12
-$default-border-radius: 4px;
13
-
14
-.group { @include pie-clearfix; }
15
-.core-layout { > div { @extend .inner-wrap; } }
16
-
17
-body {
18
-  > header, > nav, > footer {
19
-    @extend .core-layout;
20
-    min-width: $min-width;
21
-  }
22
-}
23
-
24
-
25
-@mixin media-layout($page-pad, $sidebar-width, $sidebar-pad) {
26
-  $side-nav: $sidebar-width - $page-pad - $sidebar-pad;
27
-
28
-  .inner-wrap {
29
-    padding: 0 $page-pad;
30
-    position: relative;
31
-    margin: 0 auto;
32
-    max-width: $max-width;
33
-    @extend .group;
34
-  }
35
-
36
-  body > nav + div {
37
-    @extend .group;
38
-    padding: 0;
39
-    max-width: $max-width + $page-pad*2;
40
-    margin: 0 auto;
41
-    > div {
42
-      @extend .group;
43
-      margin-right: $sidebar-width;
44
-    }
45
-  }
46
-  body > nav > div > div { width: $side-nav;
47
-    .search { width: $side-nav - 70px; }
48
-  }
49
-
50
-  #articles {
51
-    float: left;
52
-    width: 100%;
53
-    padding-top: 25px;
54
-    padding-bottom: 25px;
55
-    > * {
56
-      padding-right: $page-pad;
57
-      padding-left: $page-pad;
58
-    }
59
-    > article {
60
-      margin-bottom: 1.5em;
61
-      padding-bottom: 1.5em;
62
-      padding-right: $page-pad;
63
-      padding-left: $page-pad;
64
-    }
65
-    + aside {
66
-      display: block;
67
-      float: left;
68
-      width: $sidebar-width - $sidebar-pad*2;
69
-      margin: 0 -100% 0 0;
70
-      padding: 0 $sidebar-pad $sidebar-pad;
71
-    }
72
-  }
73
-}
74
-
75
-@media only screen and (min-width: 320px) {
76
-  @import "../media/480";
77
-}
78
-
79
-@media only screen and (min-width: 768px) {
80
-  @include media-layout(15px, 240px, 15px);
81
-  @import "../media/768";
82
-}
83
-
84
-@media only screen and (min-width: 992px) {
85
-  @include media-layout(40px, 320px, 30px);
86
-  @import "../media/992";
87
-}
88
-
89
-
90
-//*{
91
-    //transition: width .5s;
92
-    //-moz-transition: width .5s;
93
-    //-webkit-transition: margin .5s;
94
-//}
95 1
deleted file mode 100644
... ...
@@ -1,44 +0,0 @@
1
-// Link Colors
2
-$link-color: lighten(#165b94, 3);
3
-$link-color-hover: darken(#165b94, 5);
4
-
5
-// Main Section Colors
6
-$body-color: #333333;
7
-$light-text: #999999;
8
-$body-bg: #323232;
9
-
10
-$header-bg: #323232;
11
-$header-border: #181818;
12
-$title-color: #dddddd;
13
-
14
-$nav-color: #555555;
15
-$nav-color_hover: black;
16
-$nav-bg: #e8e8e8;
17
-$nav-border_top: white;
18
-$nav-border_bottom: #aaaaaa;
19
-$nav-border_left: #cccccc;
20
-$nav-border_right: white;
21
-
22
-$sidebar-bg: #f2f2f2;
23
-$sidebar-border: #d5d5d5;
24
-
25
-// Blog
26
-$article-border: #eeeeee;
27
-$main-bg: #fff;
28
-
29
-$footer-color: #999999;
30
-$footer-bg: #444444;
31
-
32
-// Form Colors
33
-$fieldset-bg: #ececec;
34
-$fieldset-border: #c3c3c3;
35
-
36
-$textinput-color: #333333;
37
-$textinput-bg: #f4f4f4;
38
-$textinput-bg-focus: #fefeee;
39
-
40
-$textinput-border-top: #aaaaaa;
41
-$textinput-border-bottom: #c6c6c6;
42
-$textinput-border-left: #c3c3c3;
43
-$textinput-border-right: #c3c3c3;
44
-$textinput-border-focus: #989898;
45 1
deleted file mode 100644
... ...
@@ -1,155 +0,0 @@
1
-$type-border: #ddd;
2
-$type-color-light: #555;
3
-$type-color: #000;
4
-$blockquote: $type-border !default; //darken($type-border, 20) !default;
5
-$mono: Menlo, Monaco, "Andale Mono", "lucida console", "Courier New", monospace;
6
-
7
-// Fonts
8
-@include font-face("Adelle", font-files("adellebasic_bold-webfont.woff", woff, "adellebasic_bold-webfont.ttf", truetype, "adellebasic_bold-webfont.svg#webfontKykxqSyz", svg), $eot: "adellebasic_bold-webfont.eot" );
9
-.heading { font-family: Adelle, "Helvetica Neue", Arial, sans-serif; }
10
-.sans { font-family: "Helvetica Neue", Arial, sans-serif; }
11
-.mono { font-family: $mono; }
12
-
13
-body > header h1 {
14
-  font-size: 3em;
15
-  @extend .heading;
16
-  line-height: 1.2em;
17
-  margin-bottom: 0.6667em;
18
-}
19
-
20
-
21
-body {
22
-  font-size: 1em;
23
-  line-height: 1.5em;
24
-  color: $type-color;
25
-  font-family: Georgia, Times, serif;
26
-}
27
-
28
-article {
29
-  &:last-child { border-bottom: none; }
30
-  h2 {
31
-    padding-top: 0.8em;
32
-    border-top: 3px double $type-border;
33
-  }
34
-  .byline + time:before, .byline + time +time:before {
35
-    content: "\2022 ";
36
-    padding: 0 .3em 0 .2em;
37
-    display: inline-block;
38
-    @include opacity(.5);
39
-  }
40
-  time span {
41
-    font-size: .7em;
42
-    line-height: 0;
43
-    position: relative;
44
-    top: -.4em;
45
-  }
46
-  header {
47
-    p {
48
-      padding: 0 0 1.5em;
49
-      font-size: .8em;
50
-      color: $type-color-light;
51
-      font-family: Palatino, Times, "Times New Roman";
52
-      margin-top: -1.4em;
53
-    }
54
-  }
55
-}
56
-
57
-#{headings()}{
58
-  @extend .heading; font-weight: normal;
59
-  line-height: 1em;
60
-  text-rendering: optimizelegibility;
61
-}
62
-h1 {
63
-  font-size: 2.6em;
64
-  margin-bottom: 0.6667em;
65
-}
66
-h2, section h1 {
67
-  font-size: 1.8em;
68
-  margin-bottom: 0.6667em;
69
-}
70
-h3, section h2, section section h1 {
71
-  font-size: 1.6em;
72
-  margin-bottom: 0.875em;
73
-}
74
-h4, section h3, section section h2, section section section h1 {
75
-  font-size: 1.3em;
76
-  margin-bottom: 0.875em;
77
-}
78
-h5, section h4, section section h3 {
79
-  font-size: 1.1em;
80
-  margin-bottom: 0.75em;
81
-}
82
-h6, section h5, section section h4, section section section h3 {
83
-  font-size: 1em;
84
-  margin-bottom: 0.5em;
85
-}
86
-p, blockquote, ul, ol { margin-bottom: 1.5em; }
87
-
88
-ul{ list-style-type: disc; }
89
-
90
-ol{ list-style-type: decimal; ol { list-style-type: lower-alpha; } }
91
-ul ul, ol ol { margin-left: 1.75em; }
92
-
93
-li { margin-bottom: .5em; }
94
-
95
-strong { font-weight: bold; }
96
-
97
-em { font-style: italic; }
98
-
99
-sup, sub { font-size: 0.8em; position: relative;  display: inline-block; }
100
-sup { top: -.5em; }
101
-sub { bottom: -.5em; }
102
-
103
-q { font-style: italic;
104
-  &:before { content: "\201C"; }
105
-  &:after { content: "\201D"; }
106
-}
107
-
108
-em, dfn { font-style: italic; }
109
-
110
-strong, dfn { font-weight: bold; }
111
-
112
-del, s { text-decoration: line-through; }
113
-
114
-abbr, acronym { border-bottom: 1px dotted; cursor: help; }
115
-
116
-pre, code, tt { @extend .mono-font; }
117
-
118
-sub, sup { line-height: 0; }
119
-
120
-hr { margin-bottom: 0.2em; }
121
-
122
-small { font-size: .8em; }
123
-
124
-big { font-size: 1.2em; }
125
-
126
-blockquote {
127
-  $bq-margin: 2em;
128
-  font-style: italic;
129
-  position: relative;
130
-  margin-left: $bq-margin;
131
-  > p {
132
-    &:first-child:before {
133
-      content: "\201C";
134
-      position: absolute;
135
-      top: 0.1em;
136
-      left: -.7em;
137
-      font-size: 3em;
138
-      color: $blockquote;
139
-    }
140
-    &:last-child:after {
141
-      content: "\201D";
142
-      position: relative;
143
-      top: 0.3em;
144
-      line-height: 0;
145
-      font-size: 2em;
146
-      color: $blockquote;
147
-    }
148
-  }
149
-  + p > cite {
150
-    margin-left: $bq-margin;
151
-    text-align: right;
152
-    &:before { content: '– '; color: $type-color-light; }
153
-    a { font-style: italic; }
154
-  }
155
-}
156 1
deleted file mode 100644
... ...
@@ -1,16 +0,0 @@
1
-body {
2
-  > header, > nav, > footer {
3
-    > div {
4
-      padding-left: .5em;
5
-      padding-right: .5em;
6
-    }
7
-  }
8
-  > header { font-size: .7em; padding: .5em 0; }
9
-}
10
-#articles { font-size: .9em; line-height: 1.5em;
11
-  > article { padding: .5em; }
12
-  + aside { display: none; }
13
-}
14
-body > nav > div > div { width: 180px;
15
-  .search { width: 110px; }
16
-}
17 1
deleted file mode 100644
... ...
@@ -1,16 +0,0 @@
1
-body > header, body #articles {
2
-  font-size: .95em;
3
-}
4
-
5
-//body {
6
-  //> header, > nav, > footer {
7
-    //> div { padding: 0 15px; }
8
-  //}
9
-//}
10
-//#page > div {
11
-  //margin-right: 0;
12
-  //#main { float: none; }
13
-  //> aside { margin: 0; float: none; }
14
-//}
15
-//page > div > aside { float: none; }
16
-//#main > * { padding-left: 15px; padding-right: 15px; }
17 1
deleted file mode 100644
... ...
@@ -1,3 +0,0 @@
1
-body > header, body #articles {
2
-  font-size: 1.05em;
3
-}
4 1
deleted file mode 100644
... ...
@@ -1,20 +0,0 @@
1
-article {
2
-  .title {
3
-    text-decoration: none;
4
-    &:hover {
5
-      text-decoration: underline; } }
6
-  .entry {
7
-    border-bottom: 1px solid $article-border;
8
-    &:first-child {
9
-      padding-top: 0; } }
10
-  #disqus_thread { }
11
-  .meta {
12
-    border-bottom: 1px dashed #dddddd;
13
-    text-transform: uppercase;
14
-    color: #777777;
15
-    padding: 8px 0 5px;
16
-    margin-bottom: 1.5em;
17
-    font-size: 75%;
18
-    letter-spacing: 1px; }
19
-  .footer {
20
-    padding-top: 15px; } }
21 1
deleted file mode 100644
... ...
@@ -1,11 +0,0 @@
1
-footer {
2
-  @include background(linear-gradient(darken($body-bg, 5), $body-bg));
3
-  //color: $footer-color;
4
-  //border-top: 10px solid $footer-bg;
5
-  padding: 15px 0;
6
-  position: relative;
7
-  z-index: 2;
8
-  a {
9
-    color: #dddddd;
10
-    &:hover {
11
-      color: white; } } }
12 1
deleted file mode 100644
... ...
@@ -1,13 +0,0 @@
1
-body > header {
2
-  background-color: $header_bg;
3
-  border-bottom: 1px solid $header_border;
4
-  h1 {
5
-    display: inline-block;
6
-    margin: 0;
7
-    a, a:visited {
8
-      font-weight: normal;
9
-      color: $title_color;
10
-      text-decoration: none;
11
-    }
12
-  }
13
-}
14 1
deleted file mode 100644
... ...
@@ -1,67 +0,0 @@
1
-body > nav {
2
-  > div > div {
3
-    float: right;
4
-    position: relative;
5
-    padding: .45em 0 0 0;
6
-    a {
7
-      float: right;
8
-      @include replace-text-with-dimensions('rss.png');
9
-    }
10
-    form {
11
-      margin: 0; padding: 0;
12
-      @include background-clip(padding-box);
13
-      input[type='text']{
14
-        margin: 0;
15
-        @include border-radius(1em);
16
-        float: left;
17
-        border: 1px solid #ccc;
18
-        color: #888;
19
-        background: image-url('search.png') no-repeat .5em .4em #f6f6f6;
20
-        padding: .4em .8em .1em 1.8em;
21
-        line-height: 1.35em;
22
-        font-size: .85em;
23
-        &:focus {
24
-          color: #444;
25
-          border-color: #80b1df;
26
-          @include box-shadow(#80b1df 0 0 4px, #80b1df 0 0 3px inset);
27
-          background-color: #fff;
28
-          outline: none;
29
-        }
30
-      }
31
-    }
32
-  }
33
-  @extend .group;
34
-  position: relative;
35
-  z-index: 1;
36
-  background-color: $nav-bg;
37
-  @include background-image(linear-gradient(#fcfcfc, #f4f4f4 0.3, #dddddd));
38
-  border: {
39
-    top: 1px solid $nav-border-top;
40
-    bottom: 1px solid $nav-border-bottom; };
41
-  ul {
42
-    position: relative;
43
-    @include horizontal-list;
44
-    margin: 0 auto;
45
-    padding: .5em 0;
46
-  }
47
-  ul li {
48
-    padding: 0 1em;
49
-    margin: 0;
50
-    border-left: 1px solid $nav-border-left;
51
-    border-right: 1px solid $nav-border-right;
52
-    &:first-child {
53
-      border-left: none;
54
-      padding-left: 0; }
55
-    &:last-child {
56
-      border-right: 0; }
57
-    a {
58
-      display: inline-block;
59
-      color: $nav-color;
60
-      line-height: 150%;
61
-      text-decoration: none;
62
-      &:hover {
63
-        color: $nav-color-hover;
64
-      }
65
-    }
66
-  }
67
-}
68 1
deleted file mode 100644
... ...
@@ -1,8 +0,0 @@
1
-body {
2
-  background-color: $sidebar_bg;
3
-}
4
-
5
-body > div > div {
6
-  background-color: $main_bg; border-right: 1px solid $sidebar_border;
7
-  //@include box-shadow(rgba(#000, .1) 0 0 18px);
8
-}
9 1
deleted file mode 100644
... ...
@@ -1,15 +0,0 @@
1
-#pinboard_linkroll {
2
-  .pin-title, .pin-description {
3
-    display: block;
4
-    margin-bottom: .5em;
5
-  }
6
-  .pin-tag {
7
-    @extend .aside-alt-link;
8
-    &:after {
9
-      content: ',';
10
-    }
11
-    &:last-child:after {
12
-      content: '';
13
-    }
14
-  }
15
-}
16 1
deleted file mode 100644
17 2
deleted file mode 100644
... ...
@@ -1,54 +0,0 @@
1
-.side-shadow-border {
2
-  @include box-shadow(#fff 0 1px);
3
-}
4
-#articles + aside {
5
-  section {
6
-    @extend .sans;
7
-    font-size: .8em;
8
-    line-height: 1.5em;
9
-    margin-bottom: 1.5em;
10
-    h1 {
11
-      margin: 1.5em 0 0;
12
-      padding-bottom: .2em;
13
-      border-bottom: 1px solid #ddd;
14
-      @extend .side-shadow-border;
15
-      + p {
16
-        padding-top: .4em;
17
-      }
18
-    }
19
-  }
20
-  ul {
21
-    margin-bottom: 0.5em;
22
-  }
23
-  li {
24
-    list-style: none;
25
-    padding: .5em 0;
26
-    margin: 0;
27
-    border-bottom: 1px solid #ddd;
28
-    @extend .side-shadow-border;
29
-    p:last-child {
30
-      margin-bottom: 0;
31
-    }
32
-  }
33
-  a {
34
-    color: inherit;
35
-    @include transition(color, .5s);
36
-  }
37
-  &:hover a, &:hover #tweets a { color: $link-color; }
38
-  @import "twitter";
39
-  @import "pinboard";
40
-  #recent_posts {
41
-    time {
42
-      text-transform: uppercase;
43
-      font-size: .9em;
44
-      color: #666;
45
-    }
46
-  }
47
-}
48
-.aside-alt-link {
49
-  color: #999;
50
-  text-decoration: none;
51
-  &:hover {
52
-    color: #555;
53
-  }
54
-}
55 1
deleted file mode 100644
... ...
@@ -1,167 +0,0 @@
1
-$base03:    #002b36; //darkest blue
2
-$base02:    #073642; //dark blue
3
-$base01:    #586e75; //darkest gray
4
-$base00:    #657b83; //dark gray
5
-$base0:     #839496; //medium gray
6
-$base1:     #93a1a1; //medium light gray
7
-$base2:     #eee8d5; //cream
8
-$base3:     #fdf6e3; //white
9
-$yellow:    #b58900;
10
-$orange:    #cb4b16;
11
-$red:       #dc322f;
12
-$magenta:   #d33682;
13
-$violet:    #6c71c4;
14
-$blue:      #268bd2;
15
-$cyan:      #2aa198;
16
-$green:     #859900;
17
-
18
-// If you prefer light colors, uncomment the following block to change themes
19
-//$base03: $base3;
20
-//$base02: $base2;
21
-//$base01: $base1;
22
-//$base00: $base0;
23
-//$base0: $base00;
24
-//$base1: $base01;
25
-//$base2: $base02;
26
-//$base3: $base03;
27
-
28
-.gutter {
29
-  .line-numbers {
30
-    text-align: right;
31
-    background: $base02 !important;
32
-    border-right: 1px solid darken($base03, 2);
33
-    @include box-shadow(lighten($base02, 2) -1px 0 inset);
34
-    text-shadow: darken($base02, 10) 0 -1px;
35
-    span { color: $base01 !important; }
36
-  }
37
-}
38
-html .gist .gist-file {
39
-  margin-bottom: 1.5em;
40
-  border: none;
41
-  .gist-syntax {
42
-    border-bottom: 1px solid #515151 !important;
43
-    .gist-highlight{
44
-      background: $base03 !important;
45
-      pre {
46
-        @extend .pre;
47
-        overflow-y: hidden;
48
-        overflow-x: auto;
49
-      }
50
-    }
51
-  }
52
-  .gist-meta {
53
-    @include background(linear-gradient(#b0b0b0, #a7a7a7));
54
-    padding: 0.5em;
55
-    background-color: #bababa !important;
56
-    border: 1px solid #9c9c9c;
57
-    border-top: 1px solid #d0d0d0;
58
-    border-bottom: 1px solid #777777;
59
-    font-size: .7em !important;
60
-    font-family: "Helvetica Neue", Arial, sans-serif !important;
61
-    color: #464646 !important;
62
-    line-height: 1.4em;
63
-  }
64
-}
65
-pre { @extend .pre; }
66
-
67
-.pre {
68
-  @extend .mono;
69
-  font-size: .8em;
70
-  line-height: 1.45em;
71
-  padding: 1em 1.2em !important;
72
-  background: $base03 !important;
73
-  color: $base1 !important;
74
-  span { color: $base1 !important; }
75
-  span { font-style: normal !important; font-weight: normal !important; }
76
-
77
-  .c      { color: $base01 !important; font-style: italic !important; }                     /* Comment */
78
-  .cm     { color: $base01 !important; font-style: italic !important; }                     /* Comment.Multiline */
79
-  .cp     { color: $base01 !important; font-style: italic !important;  }                     /* Comment.Preproc */
80
-  .c1     { color: $base01 !important; font-style: italic !important; }                     /* Comment.Single */
81
-  .cs     { color: $base01 !important; font-weight: bold !important; font-style: italic !important; }   /* Comment.Special */
82
-  .err    { color: $red !important; background: none !important; }                                            /* Error */
83
-  .k      { color: $orange !important; }                       /* Keyword */
84
-  .o      { color: $base1 !important; font-weight: bold !important; }                       /* Operator */
85
-  .p      { color: $base1 !important; }                                             /* Operator */
86
-  .ow     { color: $cyan !important; font-weight: bold !important; }                       /* Operator.Word */
87
-  .gd     { color: $base1 !important; background-color: mix($red, $base03, 25%) !important; display: block; }               /* Generic.Deleted */
88
-  .gd .x  { color: $base1 !important; background-color: mix($red, $base03, 35%) !important; display: block; }               /* Generic.Deleted.Specific */
89
-  .ge     { color: $base1 !important; font-style: italic !important; }                      /* Generic.Emph */
90
-  //.gr     { color: #aa0000 }                                          /* Generic.Error */
91
-  .gh     { color: $base01 !important; }                                          /* Generic.Heading */
92
-  .gi     { color: $base1 !important; background-color: mix($green, $base03, 20%) !important; display: block; }               /* Generic.Inserted */
93
-  .gi .x  { color: $base1 !important; background-color: mix($green, $base03, 40%) !important; display: block; }               /* Generic.Inserted.Specific */
94
-  //.go     { color: #888888 }                                          /* Generic.Output */
95
-  //.gp     { color: #555555 }                                          /* Generic.Prompt */
96
-  .gs     { color: $base1 !important; font-weight: bold !important; }                                       /* Generic.Strong */
97
-  .gu     { color: $violet !important; }                                          /* Generic.Subheading */
98
-  //.gt     { color: #aa0000 }                                          /* Generic.Traceback */
99
-  .kc     { color: $green !important; font-weight: bold !important; }                       /* Keyword.Constant */
100
-  .kd     { color: $blue !important; }                       /* Keyword.Declaration */
101
-  .kp     { color: $orange !important; font-weight: bold !important; }                       /* Keyword.Pseudo */
102
-  .kr     { color: $magenta !important; font-weight: bold !important; }                       /* Keyword.Reserved */
103
-  .kt     { color: $cyan !important; }                       /* Keyword.Type */
104
-  .n      { color: $blue !important; }
105
-  .na     { color: $blue !important; }                                          /* Name.Attribute */
106
-  .nb     { color: $green !important; }                                          /* Name.Builtin */
107
-  //.nc     { color: #445588; font-weight: bold }                       /* Name.Class */
108
-  .no     { color: $yellow !important; }                                          /* Name.Constant */
109
-  //.ni     { color: #800080 }                                          /* Name.Entity */
110
-  .ne     { color: $blue !important; font-weight: bold !important; }                       /* Name.Exception */
111
-  .nf     { color: $blue !important; font-weight: bold !important; }                       /* Name.Function */
112
-  .nn     { color: $yellow !important; }                                          /* Name.Namespace */
113
-  .nt     { color: $blue !important; font-weight: bold !important; }                                          /* Name.Tag */
114
-  .nx     { color: $yellow !Important; }
115
-  //.bp     { color: #999999 }                                          /* Name.Builtin.Pseudo */
116
-  //.vc     { color: #008080 }                                          /* Name.Variable.Class */
117
-  .vg     { color: $blue !important; }                                          /* Name.Variable.Global */
118
-  .vi     { color: $blue !important; }                                          /* Name.Variable.Instance */
119
-  .nv     { color: $blue !important; }                                          /* Name.Variable */
120
-  //.w      { color: #bbbbbb }                                          /* Text.Whitespace */
121
-  .mf     { color: $cyan !important; }                                          /* Literal.Number.Float */
122
-  .m      { color: $cyan !important; }                                          /* Literal.Number */
123
-  .mh     { color: $cyan !important; }                                          /* Literal.Number.Hex */
124
-  .mi     { color: $cyan !important; }                                          /* Literal.Number.Integer */
125
-  //.mo     { color: #009999 }                                          /* Literal.Number.Oct */
126
-  .s      { color: $cyan !important; }                                             /* Literal.String */
127
-  //.sb     { color: #d14 }                                             /* Literal.String.Backtick */
128
-  //.sc     { color: #d14 }                                             /* Literal.String.Char */
129
-  .sd     { color: $cyan !important; }                                             /* Literal.String.Doc */
130
-  .s2     { color: $cyan !important; }                                             /* Literal.String.Double */
131
-  .se     { color: $red !important; }                                             /* Literal.String.Escape */
132
-  //.sh     { color: #d14 }                                             /* Literal.String.Heredoc */
133
-  .si     { color: $blue !important; }                                             /* Literal.String.Interpol */
134
-  //.sx     { color: #d14 }                                             /* Literal.String.Other */
135
-  .sr     { color: $cyan !important; }                                          /* Literal.String.Regex */
136
-  .s1     { color: $cyan !important; }                                             /* Literal.String.Single */
137
-  //.ss     { color: #990073 }                                          /* Literal.String.Symbol */
138
-  //.il     { color: #009999 }                                          /* Literal.Number.Integer.Long */
139
-}
140
-
141
-.highlight {
142
-  margin-bottom: 1.5em;
143
-  overflow-y: hidden;
144
-  .gutter pre {
145
-    padding-left: .8em !important;
146
-    padding-right: .8em !important;
147
-  }
148
-}
149
-
150
-h3.filename {
151
-  font-size: 13px;
152
-  line-height: 2em;
153
-  text-align: center;
154
-  text-shadow: #cbcccc 0 1px 0;
155
-  color: #474747;
156
-  font-style: normal;
157
-  margin-bottom: 0;
158
-
159
-  @include border-top-radius(5px);
160
-  font-family: "Helvetica Neue",Arial, "Lucida Grande", "Lucida Sans Unicode", Lucida, sans-serif;
161
-  background: #aaaaaa image-url("code_bg.png") top repeat-x;
162
-  border: 1px solid #565656;
163
-  border-top-color: #cbcbcb;
164
-  border-left-color: #a5a5a5;
165
-  border-right-color: #a5a5a5;
166
-  border-bottom: 0;
167
-}
168 1
deleted file mode 100644
... ...
@@ -1,49 +0,0 @@
1
-#tweets {
2
-  a {
3
-    color: #666;
4
-    text-decoration: none;
5
-    &:hover { text-decoration: underline; }
6
-  }
7
-  li:hover a[href*='status']{
8
-    color: #666;
9
-  }
10
-  p {
11
-    position: relative;
12
-    padding-right: 1.4em;
13
-  }
14
-  a[href*='status']{
15
-    color: #ccc;
16
-    position: absolute;
17
-    top: 0;
18
-    right: -.5em;
19
-    text-decoration: none;
20
-    padding: 0 .5em .1em;
21
-    text-shadow: #fff 0 1px;
22
-    span:last-child {
23
-      display: none;
24
-      font-size: .7em;
25
-    }
26
-    span:first-child {
27
-      font-size: 1.1em;
28
-    }
29
-    &:hover {
30
-      span:first-child{ display: none; }
31
-      span:last-child{ display: inline-block; }
32
-      background: #e5e5e5;
33
-      @include box-shadow($sidebar-bg -2px 2px 8px 8px);
34
-      @include border-radius(1em);
35
-      text-decoration: none;
36
-      line-height: 1.2em;
37
-      span:last-child {
38
-        color: #444;
39
-        //text-shadow: #eee 0 1px;
40
-      }
41
-    }
42
-  }
43
-  a[href*='twitter.com/search']{
44
-    @extend .aside-alt-link;
45
-    &:hover {
46
-      text-decoration: underline;
47
-    }
48
-  }
49
-}
50 1
new file mode 120000
... ...
@@ -0,0 +1 @@
0
+themes/classic/source
0 1
\ No newline at end of file
1 2
deleted file mode 100644
... ...
@@ -1,30 +0,0 @@
1
-<header>
2
-  {% if index %}
3
-    <h1><a href="{{ page.url }}">{{ page.title }}</a></h1>
4
-  {% else %}
5
-    <h1>{{ page.title }}</h1>
6
-  {% endif %}
7
-  {% unless page.nometa %}
8
-    {% if page.author %}
9
-      {% assign author = page.author %}
10
-    {% else %}
11
-      {% assign author = site.author %}
12
-    {% endif %}
13
-    <p>
14
-      {% if author %}
15
-        <span class="byline author vcard">By <span class="fn">{{ author }}</span></span>
16
-      {% endif %}
17
-      {% if page.date %}
18
-        <time datetime="{{ page.date | datetime }}" pubdate>{{ page.date | ordinalize }}</time>
19
-      {% endif %}
20
-      {% if page.updated %}
21
-        <time class="updated" datetime="{{ page.updated | datetime }}" pubdate>Updated {{ page.updated | ordinalize }}</time>
22
-      {% endif %}
23
-    </p>
24
-  {% endunless %}
25
-</header>
26
-{% if index %}
27
-<div class="entry">{{ content | exerpt(content, page.url, 'Continue reading &raquo;') | smart_quotes }}</div>
28
-{% else %}
29
-<div class="entry">{{ content | smart_quotes }}</div>
30
-{% endif %}
31 1
deleted file mode 100644
... ...
@@ -1,3 +0,0 @@
1
-<h1>On Delicious</h1>
2
-<script type="text/javascript" src="http://feeds.delicious.com/v2/js/{{ site.delicious_user }}?title=&count={{ site.delicious_count }}&sort=date&extended"></script>
3
-<p><a href="http://delicious.com/{{ site.delicious_user }}">My Delicious Bookmarks &raquo;</a></p>
4 1
deleted file mode 100644
... ...
@@ -1,7 +0,0 @@
1
-<script type="text/javascript">
2
-  var disqus_url = "{{ site.url }}{{ page.url }}";
3
-</script>
4
-<noscript>
5
-  <a href="http://{{ site.disqus_short_name }}.disqus.com/?url=ref">View the discussion thread</a>
6
-</noscript>
7
-<script type="text/javascript" src="http://disqus.com/forums/{{ site.disqus_short_name }}/embed.js"></script>
8 1
deleted file mode 100644
... ...
@@ -1,11 +0,0 @@
1
-<p>
2
-  Copyright &copy; {{ site.time | date: "%Y" }} - {{ site.author }} -
3
-  <span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
4
-</p>
5
-{% if site.pinboard_user %}
6
-  <script language="javascript" src="/javascripts/pinboard.js"></script>
7
-  <script language="javascript">
8
-    var linkroll = 'pinboard_linkroll'; //id target for pinboard list
9
-    pinboardNS_fetch_script("http://feeds.pinboard.in/json/v1/u:{{ site.pinboard_user }}/?cb=pinboardNS_show_bmarks\&count={{ site.pinboard_count }}");
10
-  </script>
11
-{% endif %}
12 1
deleted file mode 100644
... ...
@@ -1,12 +0,0 @@
1
-<script src="http://www.google-analytics.com/ga.js" type="text/javascript"></script>
2
-<script type="text/javascript">
3
-  var _gaq = _gaq || [];
4
-  _gaq.push(['_setAccount', '#{page.google_analytics_tracking_id}']);
5
-  _gaq.push(['_trackPageview']);
6
-
7
-  (function() {
8
-    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
9
-    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
10
-    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
11
-  })();
12
-</script>
13 1
deleted file mode 100644
... ...
@@ -1,40 +0,0 @@
1
-<!DOCTYPE html>
2
-<!--[if IEMobile 7 ]><html class="no-js iem7" manifest="default.appcache?v=1"><![endif]-->
3
-<!--[if lt IE 7 ]><html class="no-js ie6" lang="en"><![endif]-->
4
-<!--[if IE 7 ]><html class="no-js ie7" lang="en"><![endif]-->
5
-<!--[if IE 8 ]><html class="no-js ie8" lang="en"><![endif]-->
6
-<!--[if (gte IE 9)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" manifest="default.appcache?v=1" lang="en"><!--<![endif]-->
7
-<head>
8
-  <meta charset="utf-8">
9
-  {% if page.title %}
10
-    <title>{{site.title}}: {{page.title}}{% if site.author %} - {{ site.author }}{% endif %}</title>
11
-  {% else %}
12
-    <title>{{site.title}}{% if site.author %} - {{ site.author }}{% endif %}</title>
13
-  {% endif %}
14
-  <meta name="author" content="{{site.author}}">
15
-  {% if page.description %}
16
-    <meta name="description" content="{{page.description}}"/>
17
-  {% endif %}
18
-
19
-  <!-- http://t.co/dKP3o1e -->
20
-  <meta name="HandheldFriendly" content="True">
21
-  <meta name="MobileOptimized" content="320">
22
-  <meta name="viewport" content="width=device-width, initial-scale=1">
23
-
24
-  {% if page.keywords %}
25
-    <meta name="keywords" content="{{page.keywords}}"/>
26
-  {% endif %}
27
-
28
-  <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
29
-  <!--<script src="/javascripts/octopress.js" type="text/javascript"></script>-->
30
-  <script src="/javascripts/libs/modernizr-1.7.js"></script>
31
-  <script src="/javascripts/libs/ios-viewport-scaling-bug-fix.js"></script>
32
-  <script src="/javascripts/libs/json2.js"></script>
33
-  <script src="/javascripts/libs/jXHR.js"></script>
34
-  <script src="/javascripts/libs/ender.js"></script>
35
-  <script src="/javascripts/syntax-helper.js"></script>
36
-  {% if site.google_analytics_tracking_id %}
37
-    {% include google_analytics.html %}
38
-  {% endif %}
39
-  <link href="/atom.xml" rel="alternate" title="{{site.title}}" type="application/atom+xml"/>
40
-</head>
41 1
deleted file mode 100644
... ...
@@ -1 +0,0 @@
1
-<h1><a href="/">{{ site.title }}</a></h1>
2 1
deleted file mode 100644
... ...
@@ -1,11 +0,0 @@
1
-<div>
2
-  <a href="/atom.xml">Subscribe</a>
3
-  <form action="{{ site.simple_search }}" method="get">
4
-    <input class="search" type="text" name="q" results="0" placeholder="Search"/>
5
-    <input type="hidden" name="q" value="site:{{ site.url | search_url }}" />
6
-  </form>
7
-</div>
8
-<ul>
9
-  <li><a href="/">Blog</a></li>
10
-  <li><a href="/about/">About</a></li>
11
-</ul>
12 1
deleted file mode 100644
... ...
@@ -1,3 +0,0 @@
1
-<h1>My Pinboard</h1>
2
-<ul id="pinboard_linkroll">Fetching linkroll...</ul>
3
-<p><a href="http://pinboard.in/u:{{ site.pinboard_user }}">My Pinboard Bookmarks &raquo;</a></p>
4 1
deleted file mode 100644
... ...
@@ -1,26 +0,0 @@
1
-<section>
2
-  <h1>About Me</h1>
3
-  <p>Hi, I'm Octopress!</p>
4
-</section>
5
-{% if page.single and site.recent_posts %}
6
-<section>
7
-  <h1>Recent Posts</h1>
8
-  <ul id="recent_posts">
9
-    {% for post in site.posts limit: site.recent_posts %}
10
-      <li class="post">
11
-        <a href="{{ post.url }}">{{ post.title }}</a>
12
-      </li>
13
-    {% endfor %}
14
-  </ul>
15
-  </section>
16
-{% endif %}
17
-{% if site.twitter_user %}
18
-  <section>{% include twitter.html %}</section>
19
-{% endif %}
20
-{% if site.delicious_user %}
21
-  <section>{% include delicious.html %}</section>
22
-{% endif %}
23
-{% if site.pinboard_user %}
24
-  <section>{% include pinboard.html %}</section>
25
-{% endif %}
26
-
27 1
deleted file mode 100644
... ...
@@ -1,13 +0,0 @@
1
-<h1>Latest Tweets</h1>
2
-<ul id="tweets">
3
-  Status updating...
4
-</ul>
5
-<p>Follow <a href="http://twitter.com/{{site.twitter_user}}">@{{ site.twitter_user }}</a></p>
6
-{% if site.twitter_user %}
7
-  <script>
8
-    var twitter_user = "{{site.twitter_user}}";
9
-    var show_replies = {{site.show_replies}};
10
-    var tweet_count = {{site.tweet_count}};
11
-  </script>
12
-  <script src="/javascripts/twitter.js" type="text/javascript"></script>
13
-{% endif %}
14 1
deleted file mode 100644
... ...
@@ -1,19 +0,0 @@
1
-layout: default
2
-<div id="content">
3
-  <div class="post">
4
-    <h1 class="post-title">{{ page.month | date_to_month }} {{ page.year }}</h1>
5
-    <p class="lead">Posts from {{ page.month | date_to_month }}, {{ page.year }}</p>
6
-    <ul>
7
-      {% for d in (1..31) reversed %}
8
-      {% if page.collated_posts[page.year][page.month][d] %}
9
-      {% for p in page.collated_posts[page.year][page.month][d] reversed %}
10
-      <li><a href='{{ p.url }}'>{{ p.title }}</a></li>
11
-      {% endfor %}
12
-      {% endif %}
13
-      {% endfor %}
14
-    </ul>
15
-  </div>
16
-</div>
17
-
18 1
deleted file mode 100644
... ...
@@ -1,25 +0,0 @@
1
-layout: default
2
-<div id="content">
3
-	<div class="post">
4
-		<h1 class="post-title">{{ page.year }}</h1>
5
-		<p class="lead">Posts from the year {{ page.year }}</p>
6
-		{% for m in (1..12) reversed %}
7
-			{% if page.collated_posts[page.year][m] %}
8
-				<h3>{{ m | date_to_month }}</h3>
9
-				{% for d in (1..31) reversed %}
10
-					{% if page.collated_posts[page.year][m][d] %}
11
-						{% for p in page.collated_posts[page.year][m][d] reversed %}
12
-							<div>
13
-								<strong>{{ p.date | date: "%d" }}</strong>
14
-								<a href='{{ p.url }}'>{{ p.title }}</a>
15
-							</div>
16
-						{% endfor %}
17
-					{% endif %}
18
-				{% endfor %}
19
-			{% endif %}
20
-		{% endfor %}
21
-	</div>
22
-</div>
23
-
24 1
deleted file mode 100644
... ...
@@ -1,23 +0,0 @@
1
-permalink: /blog/:year/:month/:day/:title
2
-{% include head.html %}
3
-<body {% if page.body_id %} id="{{ page.body_id }}" {% endif %} {% if page.no_sidebar %} class="no-sidebar" {% endif %}>
4
-  <header><div>{% include header.html %}</div></header>
5
-  <nav><div>{% include navigation.html %}</div></nav>
6
-  <div>
7
-    <div>
8
-      <div id="articles">{{ content }}</div>
9
-      {% unless page.no_sidebar %}
10
-        <aside>{% include sidebar.html %}</aside>
11
-      {% endunless %}
12
-    </div>
13
-  </div>
14
-  <footer><div>{% include footer.html %}</div></footer>
15
-  <!--[if (lt IE 9) & (!IEMobile)]>
16
-  <script src="javascripts/libs/ie/DOMAssistantCompressed-2.8.js"></script>
17
-  <script src="javascripts/libs/ie/selectivizr-1.0.1.js"></script>
18
-  <script src="javascripts/libs/ie/respond.min.js"></script>
19
-  <![endif]-->
20
-</body>
21
-</html>
22 1
deleted file mode 100644
... ...
@@ -1,13 +0,0 @@
1
-layout: default
2
-no_title_link: true
3
-permalink: pretty
4
-single: true
5
-
6
-<article>
7
-  {% include article.html %}
8
-  {% if site.disqus_short_name %}
9
-    <div id="disqus_thread">{% include disqus_thread.html %}</div>
10
-  {% endif %}
11
-</article>
12 1
deleted file mode 100644
... ...
@@ -1,11 +0,0 @@
1
-layout: default
2
-single: true
3
-
4
-<article>
5
-  {% include article.html %}
6
-  {% if site.disqus_short_name %}
7
-    <div id="disqus_thread">{% include disqus_thread.html %}</div>
8
-  {% endif %}
9
-</article>
10 1
deleted file mode 100644
... ...
@@ -1,16 +0,0 @@
1
-title: Hello World! I'm Octopress!
2
-layout: post
3
-updated: March 10th, 2010
4
-
5
-**Octopress is a blogging framework designed for hackers**, based on [Jekyll](http://github.com/mojombo/jekyll) the blog aware static site generator powering [Github pages](http://pages.github.com/).
6
-If you don't know what Jekyll is, [Jack Moffitt](http://metajack.im/2009/01/23/blogging-with-git-emacs-and-jekyll/) wrote a good summary:
7
-
8
-{% blockquote Jack Moffitt http://metajack.im/2009/01/23/blogging-with-git-emacs-and-jekyll/ Blogging with Git Emacs and Jekyll %}
9
-  Jekyll is a static blog generator; it transforms a directory of input files into another directory of files suitable for a blog. The management of the blog is handled by standard, familiar tools like creating and renaming files, the text editor of your choice, and version control.
10
-{% endblockquote %}
11
-
12
-There's no database to set up, and you get to use tools like Emacs, Vim, or TextMate to write your posts, not some lame in-browser text editor. Just write, generate, deploy, using the same tools and patterns you already use for your daily work.
13
-
14
-[Read the wiki to learn more](http://wiki.github.com/imathis/octopress/)
15 1
deleted file mode 100644
... ...
@@ -1,6 +0,0 @@
1
-title: Test Post
2
-layout: post
3
-
4
-This is a test!
5 1
deleted file mode 100644
... ...
@@ -1,50 +0,0 @@
1
-title: "Test of Typography"
2
-date: 2011-04-07 19:17
3
-layout: post
4
-
5
-In the past I've always designed my own business cards, printed them on expensive card stock, and hand-cut them with an X-Acto knife. My cards were way nicer than those my clients had gotten *professionally* printed with bubbly ink, no-bleed designs, and cheap paper. Though I put tremendous care into my cards, I never was happy with the design.
6
-
7
-## Why Have Business Cards?
8
-I'm rarely asked for my business card except when I attend conferences, of which I attend one or two each year. As a freelance contractor, I leave work by walking twenty-five feet from my office to the couch. Many of the
9
-people I work for I've never met in-person.
10
-
11
-When someone gives me their business card, I read it, pocket it, and eventually throw it out &mdash; sometimes before I remember to copy the information to my address book (sorry, just being honest). The reality is, with the ubiquity of the internet and with frictionless social networks like Twitter, I can connect with people immediately. So why have business cards?
12
-
13
-<!-- more -->
14
-
15
-### Inspiration Demands Action
16
-In one of our campfire chats [Nathaniel Talbott](http://twitter.com/NTalbott) showed off his business cards which he printed through [Moo](http://moo.com). They were half the size of regular business cards featuring the company logo on the front, and the url on the back. The unique size of the card intrigued me, and days later I couldn't stop thinking about designing a set of mini-cards for myself.
17
-
18
-<img src="/content/blog/2010/cards/box.jpg" alt="cards in a box" width="300px" class="right"/> Moo's [MiniCard's](http://moo.com/products/minicards.php) are very unique. You can print 100 cards, each with a totally different back. With a typical printing service this would be prohibitively expensive, but with Moo the rules are different. This freedom encourages us to go beyond nicely styled contact information and branding. Some clever uses involve offering unique invite codes for a web application, or sharing a photography portfolio with Moo's Flickr import feature.
19
-
20
-I realized that I could print several design iterations and decide later which worked best. Without the pressure to choose a single design, I felt the freedom to create.
21
-
22
-### The Freedom to Fail
23
-<img src="/content/blog/2010/cards/concepts.jpg" alt="card concepts" width="270px" class="left"/> I could be cheeky and print up half of my cards with my logo on one side and only my Twitter name on the other. For less than $20 for 100 cards, I wasn't even concerned about possibly screwing up a whole batch. So that's what I did. I designed cards that were good enough and I printed them. If the cards did't turn out how I wanted them to, I could improve and print again.
24
-
25
-<img src="/content/blog/2010/cards/handout.jpg" alt="handout cards" width="220px" class="right"/> The process was fun and simple, and as soon as I finished, I wanted to do it again. When my cards arrived, I was absolutely delighted by the print quality and the care put into their presentation. Smartly Moo even included some beautiful promotional cards to hand out when people inevitably ask about mine.
26
-
27
-### A Second Iteration
28
-After holding the finished product, I began to see how my design could be improved. I learned that Gill Sans is harder to read at a small size in a high contrast print, so I switched to Futura. I showed my cards to some far-sighted friends and adjusted my font size accordingly. I discarded a background gradient (which I should have known wouldn't translate well to print) in favor of a solid color. **Sidenote:** On screen, gradients emulate the subtleties of a natural light source, but on a real object it doesn't make sense and generally looks bad.
29
-
30
-I changed my approach choosing a single design with multiple color variations. In the promotional cards Moo sent me, I learned that they do a fantastic job with bright colors and I wanted to use that boldness in my design. I was inspired by what [Seth Godin said](http://sethgodin.typepad.com/seths_blog/2009/07/welcome-to-island-marketing.html):
31
-
32
-> Every interaction is both precious and an opportunity to delight.
33
-
34
-<img src="/content/blog/2010/cards/holder.jpg" alt="MiniCard Holder" width="220px" class="right"/> I pictured sliding a card out of my [MiniCard Holder](http://moo.com/products/accessories/holders/moo_minicard_holders) and revealing another brightly-colored card beneath. As I hand someone a card they'll see the flash of color and realize that their card was special, and different from my other cards. That's what I want my clients and future clients to feel.
35
-
36
-### The Final Design
37
-
38
-<img src="/content/blog/2010/cards/all.jpg" alt="all card designs" width="640px"/>
39
-
40
-The MiniCard's unique constraints inspired me with a fresh challenge and their pricing model encouraged me to experiment. Instead of treating business cards like a necessary design task, I saw them as a opportunity to release quickly, fail cheaply, and improve. Now when I give someone a business card, it's something valuable to me, and I hope they're delighted.
41
-
42
-**Update:** I thought I'd share some other great uses of Moo's MiniCards. There's a fantastic [Flikr pool](http://www.flickr.com/groups/moo/pool/), but here are some of my favorites. Enjoy:
43
-
44
-- [Product](http://www.flickr.com/photos/lushlampwork/4131018201/in/pool-moo) [tags](http://www.flickr.com/photos/lushlampwork/4297224179/in/pool-moo)
45
-- [Photography](http://www.flickr.com/photos/thisiswoly/4206576342/in/pool-moo) or [art](http://www.flickr.com/photos/lesleybarnes/4276368956/in/pool-moo) [portfolios](http://www.flickr.com/photos/playinprogress/4158223112/in/pool-moo)
46
-- [Gift](http://www.flickr.com/photos/polkadotcreations/4167249758/in/pool-moo) [tags](http://www.flickr.com/photos/22338102@N04/4278114745/in/pool-moo)
47
-- [An advent calendar](http://www.flickr.com/photos/bcome/4177034036/in/pool-moo)
48
-
49 1
deleted file mode 100644
... ...
@@ -1,14 +0,0 @@
1
-layout: default
2
-title: About Me
3
-layout: page
4
-description: this is about me
5
-date: May 14 2011
6
-/ use the :mardown filter if you want to write pages with Markdown
7
-:markdown
8
-  Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum.
9
-
10
-  Ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt.
11
-
12
-  Dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent.
13 1
deleted file mode 100644
... ...
@@ -1,24 +0,0 @@
1
-layout: page
2
-title: Blog Archive
3
-nometa: true
4
-{% for post in site.posts reverse %}
5
-  {% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
6
-  {% capture this_month %}{{ post.date | date: "%B" }}{% endcapture %}
7
-  {% unless year == this_year %}
8
-    {% unless forloop.first %}</ul>{% endunless %}
9
-    {% assign year = this_year %}
10
-    <h2>{{ year }}</h2>
11
-    <ul class="blog_archives">
12
-  {% endunless %}
13
-  {% unless month == this_month %}
14
-    {% assign month = this_month %}
15
-    <li><h4>{{ month }}</h4></li>
16
-  {% endunless %}
17
-  <li>
18
-    <time datetime="{{ post.date | datetime }}" pubdate>{{ post.date | date: "%d"}}</time>
19
-    <a href="{{ post.url }}">{{post.title}}</a>
20
-  </li>
21
-  {% if forloop.last %}</ul>{% endif %}
22
-{% endfor %}
23 1
deleted file mode 100644
... ...
@@ -1,28 +0,0 @@
1
-layout: nil
2
-<?xml version="1.0" encoding="utf-8"?>
3
-<feed xmlns="http://www.w3.org/2005/Atom">
4
-
5
-  <title>{{ site.blog_title }}</title>
6
-  <link href="{{ site.url }}/atom.xml" rel="self"/>
7
-  <link href="{{ site.url }}/"/>
8
-  <updated>{{ site.time | date_to_xmlschema }}</updated>
9
-  <id>{{ site.url }}/</id>
10
-  <author>
11
-    <name>{{ site.author }}</name>
12
-    {% if site.email %}
13
-      <email>{{ site.email }}</email>
14
-    {% endif %}
15
-  </author>
16
-
17
-  {% for post in site.posts %}
18
-  <entry>
19
-    <title>{{ post.title }}</title>
20
-    <link href="{{ site.url }}{{ post.url }}"/>
21
-    <updated>{{ post.date | date_to_xmlschema }}</updated>
22
-    <id>{{ site.url }}{{ post.id }}</id>
23
-    <content type="html">{{ post.content | full_urls: site.url | xml_escape }}</content>
24
-  </entry>
25
-  {% endfor %}
26
-</feed>
27 1
deleted file mode 100755
28 2
Binary files a/source/fonts/adellebasic_bold-webfont.eot and /dev/null differ
29 3
deleted file mode 100755
... ...
@@ -1,139 +0,0 @@
1
-<?xml version="1.0" standalone="no"?>
2
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
-<svg xmlns="http://www.w3.org/2000/svg">
4
-<metadata>
5
-This is a custom SVG webfont generated by Font Squirrel.
6
-Copyright   : Copyright c 2009 by TypeTogether All rights reserved
7
-Designer    : Veronika Burian Jos Scaglione
8
-Foundry     : TypeTogether
9
-Foundry URL : wwwtypetogethercom
10
-</metadata>
11
-<defs>
12
-<font id="webfontKykxqSyz" horiz-adv-x="1167" >
13
-<font-face units-per-em="2048" ascent="1546" descent="-502" />
14
-<missing-glyph horiz-adv-x="413" />
15
-<glyph unicode=" "  horiz-adv-x="413" />
16
-<glyph unicode="&#x09;" horiz-adv-x="413" />
17
-<glyph unicode="&#xa0;" horiz-adv-x="413" />
18
-<glyph unicode="!" horiz-adv-x="569" d="M414 401h-258l-37 719v363h330v-363zM461 135q0 -160 -176 -160t-176 160t176 160t176 -160z" />
19
-<glyph unicode="&#x22;" horiz-adv-x="825" d="M358 915h-276v531h276v-531zM743 915h-276v531h276v-531z" />
20
-<glyph unicode="#" horiz-adv-x="1243" d="M831 0h-210l34 248h-176l-37 -248h-213l37 248h-205l45 207h193l35 231h-205l43 209h193l32 217h213l-32 -217h176l32 217h213l-32 -217h207l-41 -209h-197l-35 -231h207l-41 -207h-199zM688 455l35 231h-176l-37 -231h178z" />
21
-<glyph unicode="$" horiz-adv-x="1083" d="M999 399q0 -158 -85 -254t-234 -129v-180h-254v166q-227 10 -356 74v327h223l26 -143q4 -23 11.5 -31t27.5 -14q51 -18 152 -18q207 0 207 145q0 72 -65.5 114t-159 66.5t-186.5 58t-158.5 113.5t-65.5 209q0 160 93 256t251 129v160h256v-150q152 -10 293 -59v-350 l-225 22l-25 136q-6 35 -41 45q-41 10 -117 10q-203 0 -202 -137q0 -68 65.5 -109t158.5 -67.5t186 -61.5t158.5 -118t65.5 -210z" />
22
-<glyph unicode="%" horiz-adv-x="1818" d="M410 526q-182 0 -263 99.5t-81 261.5q0 180 90 281.5t270 101.5q342 0 342 -357q0 -180 -91 -283.5t-267 -103.5zM662 -35h-285l772 1307h283zM420 694q61 0 89 51.5t28 159.5q0 100 -27 147.5t-88 47.5q-121 0 -121 -199q0 -207 119 -207zM1395 -25q-182 0 -263 99.5 t-81 261.5q0 180 90 281.5t270 101.5q342 0 342 -357q0 -180 -91 -283.5t-267 -103.5zM1402.5 143q63.5 0 90.5 50.5t27 160.5q0 100 -26 147.5t-89 47.5q-119 0 -119 -199q0 -106 26.5 -156.5t90 -50.5z" />
23
-<glyph unicode="&#x26;" horiz-adv-x="1470" d="M1409 0h-346l-113 131q-166 -156 -413 -156q-211 0 -338 112t-127 310q0 295 295 418q-76 119 -76 238q0 156 109.5 247t285.5 91q104 0 206.5 -28t158.5 -63v-321l-220 8l-24 137q-4 25 -29 33q-27 8 -73 8q-59 0 -90 -30.5t-31 -81.5q0 -86 112 -217l230 -271 q29 88 47 228h352v-158l-94 -19q-18 -4 -25.5 -9t-9.5 -25q-29 -133 -76 -232l129 -147q18 -23 39 -25l121 -18v-160zM784 317l-270 308q-145 -61 -145 -213q0 -82 47 -136.5t145 -54.5q135 0 223 96z" />
24
-<glyph unicode="'" horiz-adv-x="442" d="M358 915h-276v531h276v-531z" />
25
-<glyph unicode="(" horiz-adv-x="729" d="M655 -221l-235 -133q-145 190 -239.5 429.5t-94.5 497.5q0 485 352 951l232 -138q-131 -195 -192.5 -388t-61.5 -425q0 -238 59 -413.5t180 -380.5z" />
26
-<glyph unicode=")" horiz-adv-x="729" d="M297 -354l-231 135q125 190 187 380.5t62 428.5q0 231 -59 412.5t-186 386.5l233 135q147 -188 243.5 -433t96.5 -501q0 -483 -346 -944z" />
27
-<glyph unicode="*" horiz-adv-x="976" d="M342 782l-174 129l88 115l178 115l-213 -8l-137 45l70 204l137 -45l162 -133l-74 199v143h215v-143l-72 -199h-69l-19 -63l53 -41l-59 -201zM809 911l-174 -129l-86 117l-62 201l56 41l-21 63l164 133l137 45l68 -204l-137 -45l-211 8l178 -115z" />
28
-<glyph unicode="+" d="M705 248h-246v295h-273v237h273v287h246v-287h274v-237h-274v-295z" />
29
-<glyph unicode="," horiz-adv-x="516" d="M281 -244l-140 41l56 219q6 18 -11 25l-84 29l45 221q141 -2 214 -33t73 -127q0 -55 -43 -141z" />
30
-<glyph unicode="-" horiz-adv-x="636" d="M596 465h-555v260h555v-260z" />
31
-<glyph unicode="." horiz-adv-x="555" d="M453 135q0 -160 -174 -160q-176 0 -176.5 160t176.5 160q174 0 174 -160z" />
32
-<glyph unicode="/" horiz-adv-x="929" d="M315 -188h-292l575 1734h291z" />
33
-<glyph unicode="0" horiz-adv-x="1232" d="M606 -25q-291 0 -409.5 160t-118.5 459q0 616 553 616q287 0 405.5 -155.5t118.5 -444.5q0 -305 -128 -470t-421 -165zM618 195q113 0 161 93t48 310q0 213 -45 301t-157 88q-117 0 -167 -92t-50 -305q0 -211 46.5 -303t163.5 -92z" />
34
-<glyph unicode="1" horiz-adv-x="831" d="M791 0h-719v162l176 14q20 2 26.5 9.5t6.5 31.5v715q0 35 -27 43l-178 37l22 168h492v-963q0 -25 5 -32t28 -9l168 -14v-162z" />
35
-<glyph unicode="2" horiz-adv-x="1073" d="M1012 0h-946v190l274 269q129 125 175 173t83 108.5t37 117.5q0 131 -146 131q-88 0 -123.5 -38t-35.5 -144l-279 24q2 379 465 379q430 0 430 -327q0 -90 -45 -178.5t-92 -139.5t-145 -145l-232 -221h301q29 0 33 24l29 162h217v-385z" />
36
-<glyph unicode="3" horiz-adv-x="1062" d="M723 551v-8q270 -41 270 -316q0 -197 -134 -297t-361 -100q-154 0 -285 50t-211 138l164 181q139 -135 307 -136q213 0 213 185q0 176 -205 176q-66 0 -151 -14v204l100 13q227 29 227 221q0 141 -149 141q-88 0 -126 -39t-38 -143l-281 24q0 379 459 379 q229 0 332.5 -85t103.5 -255q0 -123 -66.5 -205.5t-168.5 -113.5z" />
37
-<glyph unicode="4" horiz-adv-x="1140" d="M934 -137h-283v264h-598v211l420 879l268 -123l-387 -727h297v329l283 43v-372h170v-240h-170v-264z" />
38
-<glyph unicode="5" horiz-adv-x="1110" d="M942 922h-543l-28 -281q106 70 260 70q184 0 289.5 -106.5t105.5 -311.5q0 -199 -133 -331t-371 -132q-340 0 -516 188l164 187q139 -139 326 -139q96 0 158.5 56t62.5 161q0 113 -57.5 155.5t-133.5 42.5q-113 0 -196 -88l-203 84l45 703h535q20 0 26 24l27 113l182 12 v-407z" />
39
-<glyph unicode="6" horiz-adv-x="1157" d="M1067 1004l-289 -35q0 92 -31.5 126.5t-113.5 34.5q-217 0 -230 -382q135 80 287 79q184 0 292 -100t108 -295q0 -229 -134.5 -343t-357.5 -114q-145 0 -246.5 50.5t-158 145.5t-81 211t-24.5 267q0 121 25.5 232.5t83 220t171 174t271.5 65.5q428 1 428 -337zM403 543 q2 -74 10.5 -126t28 -105.5t60.5 -82t102 -28.5q172 0 172 217q0 104 -37 147t-129 43q-101 1 -207 -65z" />
40
-<glyph unicode="7" horiz-adv-x="1089" d="M625 -137h-326q53 625 446 1059h-391q-14 0 -18 -5.5t-8 -21.5l-33 -172l-215 -16v473h989v-232q-186 -199 -311 -491.5t-133 -593.5z" />
41
-<glyph unicode="8" horiz-adv-x="1105" d="M823 696q215 -123 215 -325q0 -193 -139 -294.5t-367 -101.5q-223 0 -343.5 90.5t-120.5 264.5q0 111 51 192.5t143 157.5q-152 104 -151 281q0 182 124.5 281t323.5 99q201 0 313.5 -87t112.5 -240q0 -177 -162 -318zM459 575q-135 -125 -135 -229q0 -166 213 -166 q94 0 142 43t48 113q0 27 -6 49.5t-26 42.5l-31 34q-12 13 -47 33l-47 26q-13 7 -57 28.5t-54 25.5zM618 795q106 111 107 204q0 139 -164 140q-76 0 -115.5 -37t-39.5 -96q0 -37 15 -68t49 -56.5t63.5 -42.5t84.5 -44z" />
42
-<glyph unicode="9" d="M109 -18l131 188q131 -111 284 -111q135 0 186.5 90.5t57.5 251.5q-121 -78 -287 -77q-176 0 -287.5 113.5t-111.5 316.5q0 219 129 337.5t356 118.5q518 0 518 -659q0 -719 -546 -719q-123 0 -240.5 40t-189.5 110zM768 623q-4 78 -12 134t-28.5 113.5t-61.5 87 t-101 29.5q-170 0 -170 -217q0 -113 37 -167t127 -54q105 0 209 74z" />
43
-<glyph unicode=":" horiz-adv-x="555" d="M453 135q0 -160 -174 -160q-176 0 -176.5 160t176.5 160q174 0 174 -160zM453 913.5q0 -159.5 -174 -159.5q-176 0 -176.5 159.5t176.5 159.5q174 0 174 -159.5z" />
44
-<glyph unicode=";" horiz-adv-x="522" d="M281 -244l-140 41l56 219q6 18 -11 25l-84 29l45 221q141 -2 214 -33t73 -127q0 -55 -43 -141zM461 913.5q0 -159.5 -174 -159.5q-176 0 -176 159.5t176 159.5q174 0 174 -159.5z" />
45
-<glyph unicode="&#x3c;" d="M940 172l-799 281v286l795 291l70 -231l-598 -201l602 -201z" />
46
-<glyph unicode="=" d="M979 266h-791v240h791v-240zM979 647h-791v240h791v-240z" />
47
-<glyph unicode="&#x3e;" d="M1010 453l-799 -281l-70 225l602 201l-596 201l68 231l795 -291v-286z" />
48
-<glyph unicode="?" horiz-adv-x="1081" d="M600 401h-309v373q70 6 112.5 11.5t106 23.5t99.5 46t63.5 78t27.5 118q0 86 -43 133t-122 47q-78 0 -138 -25q-23 -8 -26 -41l-19 -131l-250 -18v377q236 90 447 90q496 0 495 -422q0 -199 -113.5 -322t-330.5 -149v-189zM621 135q0 -160 -175 -160q-176 0 -176 160 t176 160q175 0 175 -160z" />
49
-<glyph unicode="@" horiz-adv-x="1722" d="M1219 -143l49 -168q-164 -72 -416 -72q-340 0 -537.5 187.5t-197.5 539.5q0 369 220 594t574 225q322 0 515.5 -171t193.5 -480q0 -272 -108.5 -404.5t-294.5 -132.5q-184 0 -236 142q-145 -141 -250 -142q-109 0 -171 75t-62 214q0 229 121.5 389t328.5 160 q145 0 285 -65l-47 -302q-27 -147 -27 -217q0 -80 76 -79q51 0 89 35.5t56.5 93t26.5 111.5t8 106q0 231 -125 357t-385 126q-283 0 -432 -184.5t-149 -450.5q0 -268 144 -409.5t409 -141.5q168 1 342 64zM963 262l59 377q-35 25 -90 25q-92 0 -159.5 -103.5t-67.5 -263.5 q0 -143 82 -143.5t176 108.5z" />
50
-<glyph unicode="A" horiz-adv-x="1554" d="M1548 0h-647v160l168 18l-74 213h-508l-71 -213l162 -18v-160h-572v160l90 22q41 10 51 39l449 1262h362l447 -1266q8 -25 49 -35l94 -22v-160zM934 612l-182 557h-13l-188 -557h383z" />
51
-<glyph unicode="B" horiz-adv-x="1376" d="M750 0h-672v160l129 14q20 2 26.5 10.5t6.5 30.5v1049q0 25 -6.5 32t-26.5 9l-129 14v164h690q449 0 449 -363q0 -135 -72 -222t-178 -122v-6q342 -39 342 -362q0 -408 -559 -408zM555 221h141q141 0 213 47t72 172q0 215 -254 215h-172v-434zM555 860h82q129 0 203.5 45 t74.5 164q0 115 -62 153t-185 38h-113v-400z" />
52
-<glyph unicode="C" horiz-adv-x="1386" d="M1294 469v-381q-184 -113 -512 -113q-719 0 -719 773q0 342 197 551.5t565 209.5q287 0 465 -116v-402l-225 19l-33 200q-6 29 -33 37q-78 25 -182 25q-199 0 -312.5 -134t-113.5 -390q0 -266 108.5 -402.5t303.5 -136.5q119 0 205 27q18 4 25 12t11 31l31 190h219z" />
53
-<glyph unicode="D" horiz-adv-x="1540" d="M707 0h-629v164l129 14q20 2 26.5 9.5t6.5 31.5v1047q0 23 -6.5 31t-26.5 10l-129 14v162h663q375 0 555.5 -187.5t180.5 -531.5q0 -354 -192.5 -559t-577.5 -205zM557 221h117q481 0 481 524q0 279 -110.5 398t-358.5 119h-129v-1041z" />
54
-<glyph unicode="E" horiz-adv-x="1284" d="M1212 0h-1134v160l129 14q20 2 26.5 10.5t6.5 30.5v1051q0 25 -6.5 32t-26.5 9l-129 14v162h1089v-414l-225 10l-29 156q-6 27 -34 27h-322v-404h479v-227h-479v-412h367q29 0 32 23l33 180h223v-422z" />
55
-<glyph unicode="F" horiz-adv-x="1234" d="M891 0h-813v160l129 14q20 2 26.5 10.5t6.5 30.5v1051q0 25 -6.5 32t-26.5 9l-129 14v162h1081v-414l-225 10l-29 156q-6 27 -35 27h-313v-402h471v-227h-471v-414q0 -25 5 -32t28 -9l301 -16v-162z" />
56
-<glyph unicode="G" horiz-adv-x="1478" d="M1460 551l-84 -8q-33 -2 -33 -29v-440q-207 -98 -530 -99q-205 0 -353.5 57.5t-233.5 164t-125 241.5t-40 307q0 342 197 553t571 211q119 0 247 -30.5t216 -87.5v-387l-227 16l-31 184q-8 35 -33 41q-94 27 -188 27q-197 0 -309.5 -140.5t-112.5 -381.5 q0 -258 109.5 -398.5t326.5 -140.5q88 0 170 14q33 6 33 37v268h-227l28 185h629v-164z" />
57
-<glyph unicode="H" horiz-adv-x="1675" d="M1604 0h-648v160l129 14q20 2 26.5 10.5t6.5 30.5v432h-561v-430q0 -25 5 -32t28 -9l137 -16v-160h-649v160l129 14q20 2 26.5 10.5t6.5 30.5v1049q0 25 -6.5 32t-26.5 9l-129 14v164h649v-164l-137 -16q-23 -2 -28 -9.5t-5 -29.5v-387h561v387q0 25 -6 32t-27 9l-129 14 v164h648v-164l-138 -16q-23 -2 -27.5 -9.5t-4.5 -29.5v-1047q0 -25 5 -32t27 -9l138 -16v-160z" />
58
-<glyph unicode="I" horiz-adv-x="827" d="M762 0h-688v160l149 14q20 2 26.5 9t6.5 32v1049q0 25 -6 32t-27 9l-149 14v164h688v-164l-158 -16q-23 -2 -28 -9.5t-5 -29.5v-1047q0 -25 5.5 -32t27.5 -9l158 -16v-160z" />
59
-<glyph unicode="J" horiz-adv-x="1056" d="M526 336v930q0 23 -6 30t-26 9l-185 14v164h705v-164l-137 -16q-23 -2 -28 -8.5t-5 -28.5v-932q0 -182 -92.5 -270.5t-294.5 -88.5q-117 0 -227.5 25t-157.5 55v365l229 -17l21 -147q2 -20 22 -27q37 -12 82 -12q55 0 77.5 26.5t22.5 92.5z" />
60
-<glyph unicode="K" horiz-adv-x="1540" d="M1522 0h-453l-383 592l-129 -154v-219q0 -25 5 -32t28 -9l158 -16v-162h-670v162l129 14q20 2 26.5 9.5t6.5 31.5v1049q0 23 -6.5 31t-26.5 10l-129 14v162h649v-162l-137 -16q-23 -2 -28 -9.5t-5 -29.5v-512l483 549l-127 16v164h537v-164l-86 -14q-41 -6 -64 -35 l-376 -426l411 -629q18 -29 60 -33l127 -20v-162z" />
61
-<glyph unicode="L" horiz-adv-x="1277" d="M1212 0h-1134v162l129 14q20 2 26.5 10.5t6.5 30.5v1049q0 25 -6.5 32t-26.5 9l-129 14v162h682v-162l-170 -16q-23 -2 -28 -9.5t-5 -29.5v-1047h365q29 0 32 23l33 204h225v-446z" />
62
-<glyph unicode="M" horiz-adv-x="1970" d="M1898 0h-673v160l168 14q20 2 26 10.5t6 30.5v778h-8l-293 -698h-333l-289 700h-10v-778q0 -25 5 -32t27 -9l176 -16v-160h-622v160l129 14q20 2 26.5 10.5t6.5 30.5v1051q0 23 -6.5 31t-26.5 10l-129 14v162h549l356 -928h8l375 928h532v-160l-137 -16 q-23 -2 -27.5 -9.5t-4.5 -29.5v-1053q0 -35 32 -39l137 -16v-160z" />
63
-<glyph unicode="N" horiz-adv-x="1693" d="M1466 0h-336l-653 1069v-852q0 -25 5 -32t28 -9l137 -16v-160h-569v160l129 14q20 2 26.5 10.5t6.5 30.5v1053q0 25 -6.5 32t-26.5 9l-129 14v160h508l643 -1071v852q0 25 -6 32t-27 9l-129 14v164h569v-164l-137 -16q-23 -2 -28 -9.5t-5 -29.5v-1264z" />
64
-<glyph unicode="O" horiz-adv-x="1554" d="M768 -25q-356 0 -530.5 206t-174.5 556q0 342 190.5 557t543.5 215q346 0 520 -207.5t174 -537.5q0 -371 -183.5 -580t-539.5 -209zM780 227q385 0 385 518q0 506 -372 506q-184 0 -293 -127t-109 -381q0 -516 389 -516z" />
65
-<glyph unicode="P" horiz-adv-x="1323" d="M881 0h-803v162l129 14q20 2 26.5 10.5t6.5 30.5v1047q0 25 -6.5 32t-26.5 9l-129 14v164h694q264 0 379 -120t115 -316q0 -500 -561 -500h-150v-328q0 -25 5 -32t28 -9l293 -16v-162zM555 766h102q59 0 103.5 9t88.5 35t68.5 81t24.5 137q0 135 -69.5 183.5t-196.5 48.5 h-121v-494z" />
66
-<glyph unicode="Q" horiz-adv-x="1552" d="M1182 -176l59 -180q-143 -76 -291 -76q-324 0 -323 305q0 55 6 111q-291 35 -434.5 235.5t-143.5 517.5q0 342 190.5 557t542.5 215q236 0 395.5 -102t229.5 -266t70 -377q0 -326 -143.5 -528.5t-421.5 -245.5q-4 -25 -5 -70q0 -63 28 -95t93 -32q72 0 148 31zM774 227 q385 0 385 518q0 506 -373 506q-186 0 -294.5 -127t-108.5 -381q0 -516 391 -516z" />
67
-<glyph unicode="R" horiz-adv-x="1406" d="M1403 0h-447l-184 514q-18 53 -44 72.5t-77 19.5h-96v-385q0 -25 5 -32t28 -9l143 -16v-164h-653v164l129 14q20 2 26.5 9.5t6.5 31.5v1047q0 23 -6.5 31t-26.5 10l-129 14v162h698q256 0 366.5 -115t110.5 -295q0 -274 -270 -393q70 -33 119 -164l112 -293 q18 -33 62 -39l127 -20v-164zM555 819h94q131 0 205 49.5t74 186.5q0 115 -64.5 160t-206.5 45h-102v-441z" />
68
-<glyph unicode="S" horiz-adv-x="1214" d="M1090 1028l-232 21l-24 165q-4 31 -25 39q-72 23 -150 23q-113 0 -171 -47t-58 -127q0 -39 18.5 -71t38 -50t70.5 -39.5t74.5 -30t93.5 -28.5q94 -29 149.5 -52.5t125 -72.5t103.5 -128t34 -188q0 -238 -161 -352.5t-415 -114.5q-129 0 -266 27t-203 57v400h230l40 -195 q4 -31 35 -37q90 -23 172 -22q258 0 258 190q0 47 -18 82t-58 59.5t-78 38t-100 31.5q-201 57 -274 101q-178 106 -178 342q0 227 151.5 343.5t397.5 116.5q225 0 420 -82v-399z" />
69
-<glyph unicode="T" horiz-adv-x="1421" d="M1128 0h-819v162l211 14q20 2 26.5 9.5t6.5 31.5v1043h-211q-29 0 -33 -23l-33 -178h-225v424h1319v-424h-223l-33 178q-4 23 -33 23h-211v-1043q0 -23 5.5 -30t27.5 -9l225 -16v-162z" />
70
-<glyph unicode="U" horiz-adv-x="1607" d="M1112 588v678q0 25 -6 32t-27 9l-129 14v162h606v-162l-137 -16q-23 -2 -28 -9.5t-5 -29.5v-736q0 -283 -151.5 -419t-431.5 -136q-303 0 -442.5 137.5t-139.5 426.5v727q0 25 -6 32t-27 9l-127 14v162h648v-162l-138 -16q-23 -2 -27.5 -9.5t-4.5 -29.5v-670 q0 -188 58 -275.5t218 -87.5q164 0 230.5 80t66.5 275z" />
71
-<glyph unicode="V" horiz-adv-x="1505" d="M981 0h-418l-411 1266q-8 25 -50 34l-92 23l21 160h620v-160l-166 -18l308 -1024h16l297 1024l-164 18l21 160h530v-160l-86 -23q-45 -10 -51 -38z" />
72
-<glyph unicode="W" horiz-adv-x="2136" d="M1688 0h-414l-201 750h-12l-189 -750h-401l-309 1264q-6 27 -45 36l-105 23l21 160h626v-160l-172 -20l209 -1002h17l235 907h312l233 -913h16l211 1008l-172 20l21 160h553v-160l-97 -23q-37 -6 -47 -36z" />
73
-<glyph unicode="X" horiz-adv-x="1583" d="M1548 0h-671v160l161 18l-278 375l-277 -375l158 -18v-160h-586v160l119 22q35 8 53 39l389 504l-409 541q-16 27 -49 34l-107 23l21 160h641v-160l-160 -18l266 -373l279 373l-158 18l21 160h540v-160l-100 -23q-29 -8 -51 -38l-383 -496l419 -545q31 -33 52 -39 l110 -22v-160z" />
74
-<glyph unicode="Y" horiz-adv-x="1384" d="M1120 0h-803v162l205 14q20 2 26.5 9.5t6.5 31.5v336l-408 713q-14 23 -49 34l-92 23l21 160h614v-160l-160 -18l248 -484h16l248 484l-157 18l20 160h522v-160l-86 -23q-39 -10 -51 -38l-371 -705v-340q0 -23 5.5 -30t27.5 -9l217 -16v-162z" />
75
-<glyph unicode="Z" horiz-adv-x="1376" d="M1284 0h-1180v199l766 1063h-454q-29 0 -33 -23l-39 -192l-221 -7v443h1124v-207l-755 -1057h499q29 0 33 23l39 219h221v-461z" />
76
-<glyph unicode="[" horiz-adv-x="630" d="M557 -293h-459v1776h459v-156l-127 -22q-33 -4 -33 -41v-1336q0 -39 33 -43l127 -22v-156z" />
77
-<glyph unicode="\" horiz-adv-x="921" d="M897 -188h-283l-573 1734h281z" />
78
-<glyph unicode="]" horiz-adv-x="630" d="M532 1483v-1776h-464v156l133 22q33 4 32 43v1295q0 76 -32 82l-133 22v156h464z" />
79
-<glyph unicode="^" horiz-adv-x="1247" d="M1186 612h-295l-273 492l-266 -492h-291l404 748h313z" />
80
-<glyph unicode="_" horiz-adv-x="1024" d="M1024 -371h-1024v219h1024v-219z" />
81
-<glyph unicode="`" horiz-adv-x="1024" d="M762 1251l-117 -102l-364 299l168 160z" />
82
-<glyph unicode="a" horiz-adv-x="1140" d="M1118 0h-377l-20 111l-10 2q-141 -137 -344 -138q-299 0 -299 304q0 152 94 227.5t289 87.5l235 16v113q0 84 -24.5 123t-112.5 39q-82 0 -116 -25.5t-34 -111.5l-288 24q0 315 440 315q240 0 338 -79.5t98 -290.5v-498q0 -25 5 -32t28 -9l98 -16v-162zM686 270v170 l-139 -10q-90 -6 -127 -32.5t-37 -88.5q0 -113 117 -112q86 -1 186 73z" />
83
-<glyph unicode="b" horiz-adv-x="1247" d="M420 0h-293q31 197 31 299v999q0 35 -27 43l-113 39l23 166h422v-567l8 -2q135 111 309 110q178 0 287 -126.5t109 -397.5q0 -303 -115 -445.5t-316 -142.5q-186 0 -301 129l-10 -2zM465 774v-479q88 -80 188 -80q199 0 199 332q0 131 -46 215t-142 84q-90 0 -199 -72z " />
84
-<glyph unicode="c" horiz-adv-x="1044" d="M901 266l80 -190q-166 -100 -389 -101q-266 0 -401.5 148.5t-135.5 394.5q0 279 152.5 424t408.5 145q113 0 212.5 -25.5t152.5 -60.5v-321l-219 10l-25 135q-4 27 -24 33q-43 14 -105 14q-100 0 -163.5 -77.5t-63.5 -245.5q0 -342 264 -342q119 0 256 59z" />
85
-<glyph unicode="d" horiz-adv-x="1251" d="M1221 0h-381l-21 115l-14 2q-145 -141 -336 -142q-397 0 -397 545q0 289 122.5 428t311.5 139q156 0 289 -98v311q0 33 -27 41l-113 39l23 166h412v-1331q0 -23 5 -30t27 -9l99 -14v-162zM782 305v483q-90 61 -176 62q-109 0 -160 -88t-51 -236q0 -309 187 -309 q98 0 200 88z" />
86
-<glyph unicode="e" horiz-adv-x="1075" d="M930 283l76 -203q-215 -104 -420 -105q-281 0 -406 153t-125 413q0 266 142.5 406t365.5 140q213 0 332 -119.5t119 -375.5q0 -55 -4 -137h-627q16 -242 242 -242q117 0 305 70zM385 649h326q-2 217 -154 217q-156 0 -172 -217z" />
87
-<glyph unicode="f" horiz-adv-x="894" d="M799 0h-744v164l115 12q20 2 26.5 10.5t6.5 32.5v623q0 20 -17 20h-137v205h154v113q0 203 110.5 297t327.5 94q80 0 139.5 -12.5t113.5 -42t84 -90t30 -150.5l-287 -35v13q0 65 -20 89q-22 27 -74 27q-72 0 -93.5 -36t-21.5 -117v-130q0 -20 16 -20h324v-205h-340v-637 q0 -25 7 -32t30 -9l250 -22v-162z" />
88
-<glyph unicode="g" horiz-adv-x="1165" d="M1139 893l-189 -14q76 -96 76 -207q0 -168 -120 -264.5t-316 -96.5q-96 0 -162 19l-68 -109l201 -12q299 -18 391 -51q150 -49 168 -199q4 -25 4 -55q0 -176 -147.5 -272.5t-415.5 -96.5q-512 0 -512 256q0 63 25.5 107.5t87.5 101.5q-90 39 -90 135q0 61 59 125 q47 49 127 123q-80 39 -128 119t-48 188q0 182 120 289.5t349 107.5q111 0 188 -20h400v-174zM756 700q0 90 -49.5 137.5t-137.5 47.5q-90 0 -143 -46t-53 -143q0 -170 190 -170q86 0 139.5 47t53.5 127zM643 -76l-299 21q-53 -66 -53 -109q0 -106 248 -106q281 0 280 118 q0 25 -11 39.5t-42 21.5t-52.5 10t-70.5 5z" />
89
-<glyph unicode="h" horiz-adv-x="1277" d="M1253 0h-444v668q0 174 -108.5 174t-213.5 -76v-549q0 -25 5.5 -32t27.5 -9l98 -14v-162h-565v162l92 14q20 2 26.5 10.5t6.5 30.5v1081q0 35 -26 43l-113 39l22 166h422v-579l11 -2q150 123 327 122q158 0 227.5 -82.5t69.5 -248.5v-539q0 -25 5 -32t28 -9l102 -14v-162 z" />
90
-<glyph unicode="i" horiz-adv-x="647" d="M492 1415q0 -88 -49.5 -136t-137.5 -48t-136 48t-48 136t48 134t136 46q90 0 138.5 -46t48.5 -134zM625 0h-584v162l104 14q20 2 26.5 10.5t6.5 30.5v602q0 35 -26 43l-111 39l22 166h424v-850q0 -25 5.5 -32t27.5 -9l105 -14v-162z" />
91
-<glyph unicode="j" horiz-adv-x="622" d="M174 -57v876q0 35 -27 43l-116 39l24 166h428v-1176q0 -348 -356 -348q-113 0 -206 34t-136 71l88 170q86 -53 178 -54q66 0 94.5 38.5t28.5 140.5zM489 1415q0 -88 -49 -136t-137 -48t-137 48t-49 136q0 86 49 133t137 47q90 0 138 -46t48 -134z" />
92
-<glyph unicode="k" horiz-adv-x="1269" d="M1255 0h-397l-260 522l-111 -121v-184q0 -25 5.5 -32t27.5 -9l123 -14v-162h-600v162l102 14q20 2 26.5 10.5t6.5 30.5v1081q0 35 -26 43l-113 39l22 166h426v-874l375 395h283v-162l-107 -20q-27 -4 -51 -31l-145 -154l262 -489q16 -31 61 -37l90 -14v-160z" />
93
-<glyph unicode="l" horiz-adv-x="647" d="M621 0h-578v162l102 14q20 2 26.5 10.5t6.5 30.5v1081q0 35 -26 43l-113 39l22 166h426v-1329q0 -25 5.5 -32t27.5 -9l101 -14v-162z" />
94
-<glyph unicode="m" horiz-adv-x="1820" d="M1794 0h-444v662q0 51 -5.5 83.5t-33 62.5t-76.5 30q-82 0 -166 -56q6 -49 6 -100v-465q0 -27 5 -34t28 -9l82 -12v-162h-424v672q0 35 -3 58.5t-12.5 51t-33 42t-60.5 14.5q-92 0 -170 -66v-555q0 -25 4.5 -31t28.5 -10l101 -14v-162h-568v162l92 14q20 2 26.5 10.5 t6.5 30.5v602q0 35 -26 43l-111 39l22 166h361l16 -106l11 -3q158 129 327 129q176 0 250 -122q156 123 330 122q162 0 231.5 -82.5t69.5 -263.5v-524q0 -25 5 -33t28 -10l102 -12v-162z" />
95
-<glyph unicode="n" horiz-adv-x="1277" d="M1253 0h-444v662q0 59 -5 91.5t-29.5 60.5t-74.5 28q-53 0 -114.5 -23.5t-98.5 -52.5v-549q0 -25 5.5 -32t27.5 -9l98 -14v-162h-565v164l92 12q20 2 26.5 10.5t6.5 30.5v602q0 35 -26 43l-111 39l25 166h358l16 -106l9 -5q176 131 360 131q164 0 236.5 -87t72.5 -261 v-522q0 -25 5 -32t28 -9l102 -14v-162z" />
96
-<glyph unicode="o" horiz-adv-x="1189" d="M582 -25q-268 0 -397.5 148.5t-129.5 402.5q0 262 139.5 411.5t413.5 149.5q270 0 398.5 -144t128.5 -394q0 -268 -139.5 -421t-413.5 -153zM596 190q215 0 215 349q0 176 -51 251.5t-156 75.5q-225 0 -225 -329q0 -347 217 -347z" />
97
-<glyph unicode="p" horiz-adv-x="1259" d="M719 -434h-668v164l82 12q23 4 30 12t7 31v1034q0 35 -27 43l-108 39l22 166h361l18 -104l10 -5q160 129 349 129q182 0 287.5 -125.5t105.5 -398.5q0 -80 -11.5 -155.5t-41 -156.5t-74.5 -140.5t-122 -97.5t-173 -38q-164 0 -293 105v-293q0 -25 5 -32t28 -9l213 -18 v-162zM477 770v-477q90 -78 193 -78q195 0 194 332q0 297 -174 297q-104 0 -213 -74z" />
98
-<glyph unicode="q" horiz-adv-x="1220" d="M1219 -434h-623v164l176 14q25 2 33 9t8 28v321l-10 4q-154 -131 -324 -131q-190 0 -298.5 130.5t-108.5 406.5q0 293 126 434t312 141q162 0 297 -116l31 96h268q-16 -154 -16 -332v-954q0 -23 5 -30t27 -9l97 -14v-162zM780 301v483q-96 66 -180 66q-104 0 -155.5 -89 t-51.5 -235q0 -309 193 -309q96 0 194 84z" />
99
-<glyph unicode="r" horiz-adv-x="968" d="M723 0h-670v166l92 12q20 2 26.5 10.5t6.5 30.5v600q0 35 -26 43l-111 39l22 166h361l25 -164h12q119 184 289 184q113 0 178 -18v-373l-246 9l-20 108q-4 23 -27 23q-66 0 -148 -72v-543q0 -25 5.5 -32t27.5 -9l203 -16v-164z" />
100
-<glyph unicode="s" horiz-adv-x="997" d="M911 731l-219 14l-20 107q-2 25 -21 29q-53 16 -131 16q-160 0 -160 -104q0 -37 32 -61.5t70 -36t107 -27.5q18 -4 29 -6q74 -16 124 -35t106.5 -54.5t85 -97t28.5 -147.5q0 -178 -127 -265.5t-336 -87.5q-127 0 -250 26t-155 48v297l219 -16l20 -117q2 -27 25 -31 q61 -20 158 -20q170 0 170 106q0 55 -47.5 82t-139.5 43l-77.5 14.5t-75 18.5t-77 27.5t-64.5 40t-56 57.5t-32.5 77t-14.5 101q0 178 130 268t323 90q225 0 376 -59v-297z" />
101
-<glyph unicode="t" horiz-adv-x="892" d="M791 238l55 -181q-168 -82 -334 -82q-180 0 -258 78t-78 252v537q0 20 -16 20h-144v182q135 14 196.5 90t78.5 244h194v-291q0 -20 17 -20h289v-205h-306v-489q0 -94 29 -131t111 -37q78 0 166 33z" />
102
-<glyph unicode="u" horiz-adv-x="1275" d="M1241 0h-381l-16 111l-10 2q-53 -41 -94.5 -65.5t-115 -48.5t-155.5 -24q-158 0 -227.5 89.5t-69.5 271.5v500q0 25 -5 31.5t-28 11.5l-98 20l20 168h420v-678q0 -96 22.5 -134t86.5 -38q109 0 211 94v527q0 25 -5 30.5t-28 10.5l-88 20l22 168h408v-850q0 -23 5 -30 t24 -9l102 -14v-164z" />
103
-<glyph unicode="v" horiz-adv-x="1275" d="M819 0h-358l-326 848q-10 27 -43 35l-86 18l33 166h555v-166l-131 -16l209 -584h14l217 584l-133 16l27 166h473v-166l-74 -12q-41 -10 -51 -35z" />
104
-<glyph unicode="w" horiz-adv-x="1800" d="M1419 0h-323l-160 686h-12l-162 -686h-369l-258 848q-8 27 -43 35l-86 18l33 166h518v-170l-115 -12l164 -576h15l182 731h309l176 -731h12l154 576l-117 12l27 170h430v-166l-74 -14q-39 -6 -49 -41z" />
105
-<glyph unicode="x" horiz-adv-x="1234" d="M1214 0h-581v160l96 18l-156 205l-170 -203l115 -18v-162h-491v160l92 18q27 4 53 35l270 299l-278 332q-25 27 -49 35l-82 22l20 166h545v-166l-100 -16l151 -191l168 191l-112 16l20 166h453v-166l-95 -20q-12 -4 -51 -39l-250 -277l287 -350q33 -33 53 -37l92 -16 v-162z" />
106
-<glyph unicode="y" horiz-adv-x="1267" d="M907 -434h-682v166l160 18q33 2 51 45l88 195l-391 856q-8 27 -43 35l-84 20l33 166h543v-166l-129 -16l227 -541h14l217 541l-133 16l27 166h457v-166l-66 -12q-39 -6 -51 -35l-451 -1102l213 -22v-164z" />
107
-<glyph unicode="z" horiz-adv-x="1058" d="M1001 0h-929v172l549 702h-287q-18 0 -23 -26l-24 -115l-217 -12v346h899v-176l-539 -701h301q18 0 23 27l24 141l223 11v-369z" />
108
-<glyph unicode="{" horiz-adv-x="677" d="M610 -141l-20 -164q-246 4 -343 64.5t-97 220.5q0 53 14 177t14 201q0 84 -33.5 116t-109.5 36v162q76 4 109.5 35.5t33.5 115.5q0 78 -14 203t-14 178q0 160 97 220.5t343 64.5l20 -164q-86 -20 -115.5 -47t-29.5 -100q0 -51 16.5 -170t16.5 -185q0 -178 -129 -233 q129 -55 129 -232q0 -63 -16.5 -182t-16.5 -170q0 -74 29.5 -100.5t115.5 -46.5z" />
109
-<glyph unicode="|" horiz-adv-x="573" d="M426 -293h-281v1839h281v-1839z" />
110
-<glyph unicode="}" horiz-adv-x="677" d="M88 -305l-20 164q86 20 115.5 46.5t29.5 100.5q0 51 -16.5 170t-16.5 182q0 176 129 232q-129 55 -129 233q0 66 16.5 184.5t16.5 170.5q0 74 -29.5 100.5t-115.5 46.5l20 164q246 -4 343 -64.5t97 -220.5q0 -53 -14 -178t-14 -203q0 -84 33.5 -115.5t109.5 -35.5v-162 q-76 -4 -109.5 -36t-33.5 -116q0 -78 14 -201.5t14 -176.5q0 -160 -97 -220.5t-343 -64.5z" />
111
-<glyph unicode="~" horiz-adv-x="1073" d="M868 942l160 -59q-25 -147 -80 -218t-151 -71q-78 0 -237 47t-216 47q-51 0 -83 -20.5t-62 -77.5l-152 74q33 121 101.5 196.5t162.5 75.5q82 0 231.5 -47t213.5 -47q47 0 69.5 21.5t42.5 78.5z" />
112
-<glyph unicode="&#xad;" horiz-adv-x="636" d="M596 465h-555v260h555v-260z" />
113
-<glyph unicode="&#x2000;" horiz-adv-x="802" />
114
-<glyph unicode="&#x2001;" horiz-adv-x="1607" />
115
-<glyph unicode="&#x2002;" horiz-adv-x="802" />
116
-<glyph unicode="&#x2003;" horiz-adv-x="1607" />
117
-<glyph unicode="&#x2004;" horiz-adv-x="534" />
118
-<glyph unicode="&#x2005;" horiz-adv-x="401" />
119
-<glyph unicode="&#x2006;" horiz-adv-x="266" />
120
-<glyph unicode="&#x2007;" horiz-adv-x="266" />
121
-<glyph unicode="&#x2008;" horiz-adv-x="200" />
122
-<glyph unicode="&#x2009;" horiz-adv-x="321" />
123
-<glyph unicode="&#x200a;" horiz-adv-x="88" />
124
-<glyph unicode="&#x2010;" horiz-adv-x="636" d="M596 465h-555v260h555v-260z" />
125
-<glyph unicode="&#x2011;" horiz-adv-x="636" d="M596 465h-555v260h555v-260z" />
126
-<glyph unicode="&#x2012;" horiz-adv-x="636" d="M596 465h-555v260h555v-260z" />
127
-<glyph unicode="&#x2013;" horiz-adv-x="1024" d="M1022 465h-1022v219h1022v-219z" />
128
-<glyph unicode="&#x2014;" horiz-adv-x="2048" d="M2048 465h-2048v219h2048v-219z" />
129
-<glyph unicode="&#x2018;" horiz-adv-x="460" d="M389 1296l-41 -196q-86 2 -137 10t-90 43t-39 96q0 53 39 131l98 207l129 -39l-47 -202q-2 -16 10 -23z" />
130
-<glyph unicode="&#x2019;" horiz-adv-x="460" d="M244 1100l-131 39l47 202q6 18 -10 25l-78 25l41 196q63 0 104 -5t82 -19.5t60.5 -46t19.5 -78.5q0 -57 -37 -131z" />
131
-<glyph unicode="&#x201c;" horiz-adv-x="829" d="M389 1296l-41 -196q-86 2 -137 10t-90 43t-39 96q0 53 39 131l98 207l129 -39l-47 -202q-2 -16 10 -23zM758 1296l-41 -196q-86 2 -137.5 10t-90 43t-38.5 96q0 53 38 131l99 207l129 -39l-47 -202q-2 -16 10 -23z" />
132
-<glyph unicode="&#x201d;" horiz-adv-x="829" d="M244 1100l-131 39l47 202q6 18 -10 25l-78 25l41 196q63 0 104 -5t82 -19.5t60.5 -46t19.5 -78.5q0 -57 -37 -131zM612 1100l-131 39l47 202q6 18 -10 25l-78 25l41 196q63 0 104.5 -5t82.5 -19.5t60.5 -46t19.5 -78.5q0 -57 -37 -131z" />
133
-<glyph unicode="&#x2026;" horiz-adv-x="1443" d="M432 135q0 -160 -174 -160q-176 0 -176 160t176 160q174 0 174 -160zM899 135q0 -160 -174 -160q-176 0 -176 160t176 160q174 0 174 -160zM1362 135q0 -160 -174 -160q-176 0 -176 160t176 160q174 0 174 -160z" />
134
-<glyph unicode="&#x202f;" horiz-adv-x="321" />
135
-<glyph unicode="&#x205f;" horiz-adv-x="401" />
136
-<glyph unicode="&#xe000;" horiz-adv-x="1065" d="M0 1065h1065v-1065h-1065v1065z" />
137
-<glyph horiz-adv-x="1024" />
138
-</font>
139
-</defs></svg> 
140 1
\ No newline at end of file
141 2
deleted file mode 100755
142 3
Binary files a/source/fonts/adellebasic_bold-webfont.ttf and /dev/null differ
143 4
deleted file mode 100755
144 5
Binary files a/source/fonts/adellebasic_bold-webfont.woff and /dev/null differ
145 6
deleted file mode 100644
146 7
Binary files a/source/images/code_bg.png and /dev/null differ
147 8
deleted file mode 100644
148 9
Binary files a/source/images/rss.png and /dev/null differ
149 10
deleted file mode 100644
150 11
Binary files a/source/images/search.png and /dev/null differ
151 12
deleted file mode 100644
... ...
@@ -1,11 +0,0 @@
1
-layout: default
2
-{% for page in site.posts limit:3 %}
3
-{% assign content = page.content %}
4
-{% assign index = true %}
5
-  <article>
6
-    {% include article.html %}
7
-  </article>
8
-{% endfor %}
9
-
10 1
deleted file mode 100644
... ...
@@ -1,1497 +0,0 @@
1
-/*!
2
-  * Ender: open module JavaScript framework
3
-  * copyright Dustin Diaz & Jacob Thornton 2011 (@ded @fat)
4
-  * https://ender.no.de
5
-  * License MIT
6
-  * Build: ender -b jeesh
7
-  */
8
-!function (context) {
9
-
10
-  function aug(o, o2) {
11
-    for (var k in o2) {
12
-      k != 'noConflict' && k != '_VERSION' && (o[k] = o2[k]);
13
-    }
14
-    return o;
15
-  }
16
-
17
-  function boosh(s, r) {
18
-    var els;
19
-    if (ender._select && typeof s == 'string' || s.nodeName || s.length && 'item' in s || s == window) { //string || node || nodelist || window
20
-      els = ender._select(s, r);
21
-      els.selector = s;
22
-    } else {
23
-      els = isFinite(s.length) ? s : [s];
24
-    }
25
-    return aug(els, boosh);
26
-  }
27
-
28
-  function ender(s, r) {
29
-    return boosh(s, r);
30
-  }
31
-
32
-  aug(ender, {
33
-    _VERSION: '0.2.0',
34
-    ender: function (o, chain) {
35
-      aug(chain ? boosh : ender, o);
36
-    }
37
-  });
38
-
39
-  aug(boosh, {
40
-    forEach: function (fn, scope) {
41
-      // opt out of native forEach so we can intentionally call our own scope
42
-      // defaulting to the current item
43
-      for (var i = 0, l = this.length; i < l; ++i) {
44
-        i in this && fn.call(scope || this[i], this[i], i, this);
45
-      }
46
-      // return self for chaining
47
-      return this;
48
-    }
49
-  });
50
-
51
-  var old = context.$;
52
-  ender.noConflict = function () {
53
-    context.$ = old;
54
-    return this;
55
-  };
56
-
57
-  (typeof module !== 'undefined') && module.exports && (module.exports = ender);
58
-  // use subscript notation as extern for Closure compilation
59
-  context['ender'] = context['$'] = ender;
60
-
61
-}(this);
62
-/*!
63
-  * bean.js - copyright Jacob Thornton 2011
64
-  * https://github.com/fat/bean
65
-  * MIT License
66
-  * special thanks to:
67
-  * dean edwards: http://dean.edwards.name/
68
-  * dperini: https://github.com/dperini/nwevents
69
-  * the entire mootools team: github.com/mootools/mootools-core
70
-  */
71
-!function (context) {
72
-  var __uid = 1, registry = {}, collected = {},
73
-      overOut = /over|out/,
74
-      namespace = /[^\.]*(?=\..*)\.|.*/,
75
-      stripName = /\..*/,
76
-      addEvent = 'addEventListener',
77
-      attachEvent = 'attachEvent',
78
-      removeEvent = 'removeEventListener',
79
-      detachEvent = 'detachEvent',
80
-      doc = context.document || {},
81
-      root = doc.documentElement || {},
82
-      W3C_MODEL = root[addEvent],
83
-      eventSupport = W3C_MODEL ? addEvent : attachEvent,
84
-
85
-  isDescendant = function (parent, child) {
86
-    var node = child.parentNode;
87
-    while (node != null) {
88
-      if (node == parent) {
89
-        return true;
90
-      }
91
-      node = node.parentNode;
92
-    }
93
-  },
94
-
95
-  retrieveUid = function (obj, uid) {
96
-    return (obj.__uid = uid || obj.__uid || __uid++);
97
-  },
98
-
99
-  retrieveEvents = function (element) {
100
-    var uid = retrieveUid(element);
101
-    return (registry[uid] = registry[uid] || {});
102
-  },
103
-
104
-  listener = W3C_MODEL ? function (element, type, fn, add) {
105
-    element[add ? addEvent : removeEvent](type, fn, false);
106
-  } : function (element, type, fn, add, custom) {
107
-    custom && add && (element['_on' + custom] = element['_on' + custom] || 0);
108
-    element[add ? attachEvent : detachEvent]('on' + type, fn);
109
-  },
110
-
111
-  nativeHandler = function (element, fn, args) {
112
-    return function (event) {
113
-      event = fixEvent(event || ((this.ownerDocument || this.document || this).parentWindow || context).event);
114
-      return fn.apply(element, [event].concat(args));
115
-    };
116
-  },
117
-
118
-  customHandler = function (element, fn, type, condition, args) {
119
-    return function (event) {
120
-      if (condition ? condition.call(this, event) : W3C_MODEL ? true : event && event.propertyName == '_on' + type || !event) {
121
-        fn.apply(element, [event].concat(args));
122
-      }
123
-    };
124
-  },
125
-
126
-  addListener = function (element, orgType, fn, args) {
127
-    var type = orgType.replace(stripName, ''),
128
-        events = retrieveEvents(element),
129
-        handlers = events[type] || (events[type] = {}),
130
-        uid = retrieveUid(fn, orgType.replace(namespace, ''));
131
-    if (handlers[uid]) {
132
-      return element;
133
-    }
134
-    var custom = customEvents[type];
135
-    if (custom) {
136
-      fn = custom.condition ? customHandler(element, fn, type, custom.condition) : fn;
137
-      type = custom.base || type;
138
-    }
139
-    var isNative = nativeEvents[type];
140
-    fn = isNative ? nativeHandler(element, fn, args) : customHandler(element, fn, type, false, args);
141
-    isNative = W3C_MODEL || isNative;
142
-    if (type == 'unload') {
143
-      var org = fn;
144
-      fn = function () {
145
-        removeListener(element, type, fn) && org();
146
-      };
147
-    }
148
-    element[eventSupport] && listener(element, isNative ? type : 'propertychange', fn, true, !isNative && type);
149
-    handlers[uid] = fn;
150
-    fn.__uid = uid;
151
-    return type == 'unload' ? element : (collected[retrieveUid(element)] = element);
152
-  },
153
-
154
-  removeListener = function (element, orgType, handler) {
155
-    var uid, names, uids, i, events = retrieveEvents(element), type = orgType.replace(stripName, '');
156
-    if (!events || !events[type]) {
157
-      return element;
158
-    }
159
-    names = orgType.replace(namespace, '');
160
-    uids = names ? names.split('.') : [handler.__uid];
161
-    for (i = uids.length; i--;) {
162
-      uid = uids[i];
163
-      handler = events[type][uid];
164
-      delete events[type][uid];
165
-      if (element[eventSupport]) {
166
-        type = customEvents[type] ? customEvents[type].base : type;
167
-        var isNative = W3C_MODEL || nativeEvents[type];
168
-        listener(element, isNative ? type : 'propertychange', handler, false, !isNative && type);
169
-      }
170
-    }
171
-    return element;
172
-  },
173
-
174
-  del = function (selector, fn, $) {
175
-    return function (e) {
176
-      var array = typeof selector == 'string' ? $(selector, this) : selector;
177
-      for (var target = e.target; target && target != this; target = target.parentNode) {
178
-        for (var i = array.length; i--;) {
179
-          if (array[i] == target) {
180
-            return fn.apply(target, arguments);
181
-          }
182
-        }
183
-      }
184
-    };
185
-  },
186
-
187
-  add = function (element, events, fn, delfn, $) {
188
-    if (typeof events == 'object' && !fn) {
189
-      for (var type in events) {
190
-        events.hasOwnProperty(type) && add(element, type, events[type]);
191
-      }
192
-    } else {
193
-      var isDel = typeof fn == 'string', types = (isDel ? fn : events).split(' ');
194
-      fn = isDel ? del(events, delfn, $) : fn;
195
-      for (var i = types.length; i--;) {
196
-        addListener(element, types[i], fn, Array.prototype.slice.call(arguments, isDel ? 4 : 3));
197
-      }
198
-    }
199
-    return element;
200
-  },
201
-
202
-  remove = function (element, orgEvents, fn) {
203
-    var k, type, events,
204
-        isString = typeof(orgEvents) == 'string',
205
-        names = isString && orgEvents.replace(namespace, ''),
206
-        rm = removeListener,
207
-        attached = retrieveEvents(element);
208
-    if (isString && /\s/.test(orgEvents)) {
209
-      orgEvents = orgEvents.split(' ');
210
-      var i = orgEvents.length - 1;
211
-      while (remove(element, orgEvents[i]) && i--) {}
212
-      return element;
213
-    }
214
-    events = isString ? orgEvents.replace(stripName, '') : orgEvents;
215
-    if (!attached || (isString && !attached[events])) {
216
-      return element;
217
-    }
218
-    if (typeof fn == 'function') {
219
-      rm(element, events, fn);
220
-    } else if (names) {
221
-      rm(element, orgEvents);
222
-    } else {
223
-      rm = events ? rm : remove;
224
-      type = isString && events;
225
-      events = events ? (fn || attached[events] || events) : attached;
226
-      for (k in events) {
227
-        events.hasOwnProperty(k) && rm(element, type || k, events[k]);
228
-      }
229
-    }
230
-    return element;
231
-  },
232
-
233
-  fire = function (element, type, args) {
234
-    var evt, k, i, types = type.split(' ');
235
-    for (i = types.length; i--;) {
236
-      type = types[i].replace(stripName, '');
237
-      var isNative = nativeEvents[type],
238
-          isNamespace = types[i].replace(namespace, ''),
239
-          handlers = retrieveEvents(element)[type];
240
-      if (isNamespace) {
241
-        isNamespace = isNamespace.split('.');
242
-        for (k = isNamespace.length; k--;) {
243
-          handlers[isNamespace[k]] && handlers[isNamespace[k]].apply(element, args);
244
-        }
245
-      } else if (!args && element[eventSupport]) {
246
-        fireListener(isNative, type, element);
247
-      } else {
248
-        for (k in handlers) {
249
-          handlers.hasOwnProperty(k) && handlers[k].apply(element, args);
250
-        }
251
-      }
252
-    }
253
-    return element;
254
-  },
255
-
256
-  fireListener = W3C_MODEL ? function (isNative, type, element) {
257
-    evt = document.createEvent(isNative ? "HTMLEvents" : "UIEvents");
258
-    evt[isNative ? 'initEvent' : 'initUIEvent'](type, true, true, context, 1);
259
-    element.dispatchEvent(evt);
260
-  } : function (isNative, type, element) {
261
-    isNative ? element.fireEvent('on' + type, document.createEventObject()) : element['_on' + type]++;
262
-  },
263
-
264
-  clone = function (element, from, type) {
265
-    var events = retrieveEvents(from), obj, k;
266
-    obj = type ? events[type] : events;
267
-    for (k in obj) {
268
-      obj.hasOwnProperty(k) && (type ? add : clone)(element, type || from, type ? obj[k] : k);
269
-    }
270
-    return element;
271
-  },
272
-
273
-  fixEvent = function (e) {
274
-    var result = {};
275
-    if (!e) {
276
-      return result;
277
-    }
278
-    var type = e.type, target = e.target || e.srcElement;
279
-    result.preventDefault = fixEvent.preventDefault(e);
280
-    result.stopPropagation = fixEvent.stopPropagation(e);
281
-    result.target = target && target.nodeType == 3 ? target.parentNode : target;
282
-    if (~type.indexOf('key')) {
283
-      result.keyCode = e.which || e.keyCode;
284
-    } else if ((/click|mouse|menu/i).test(type)) {
285
-      result.rightClick = e.which == 3 || e.button == 2;
286
-      result.pos = { x: 0, y: 0 };
287
-      if (e.pageX || e.pageY) {
288
-        result.clientX = e.pageX;
289
-        result.clientY = e.pageY;
290
-      } else if (e.clientX || e.clientY) {
291
-        result.clientX = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft;
292
-        result.clientY = e.clientY + document.body.scrollTop + document.documentElement.scrollTop;
293
-      }
294
-      overOut.test(type) && (result.relatedTarget = e.relatedTarget || e[(type == 'mouseover' ? 'from' : 'to') + 'Element']);
295
-    }
296
-    for (var k in e) {
297
-      if (!(k in result)) {
298
-        result[k] = e[k];
299
-      }
300
-    }
301
-    return result;
302
-  };
303
-
304
-  fixEvent.preventDefault = function (e) {
305
-    return function () {
306
-      if (e.preventDefault) {
307
-        e.preventDefault();
308
-      }
309
-      else {
310
-        e.returnValue = false;
311
-      }
312
-    };
313
-  };
314
-
315
-  fixEvent.stopPropagation = function (e) {
316
-    return function () {
317
-      if (e.stopPropagation) {
318
-        e.stopPropagation();
319
-      } else {
320
-        e.cancelBubble = true;
321
-      }
322
-    };
323
-  };
324
-
325
-  var nativeEvents = { click: 1, dblclick: 1, mouseup: 1, mousedown: 1, contextmenu: 1, //mouse buttons
326
-    mousewheel: 1, DOMMouseScroll: 1, //mouse wheel
327
-    mouseover: 1, mouseout: 1, mousemove: 1, selectstart: 1, selectend: 1, //mouse movement
328
-    keydown: 1, keypress: 1, keyup: 1, //keyboard
329
-    orientationchange: 1, // mobile
330
-    touchstart: 1, touchmove: 1, touchend: 1, touchcancel: 1, // touch
331
-    gesturestart: 1, gesturechange: 1, gestureend: 1, // gesture
332
-    focus: 1, blur: 1, change: 1, reset: 1, select: 1, submit: 1, //form elements
333
-    load: 1, unload: 1, beforeunload: 1, resize: 1, move: 1, DOMContentLoaded: 1, readystatechange: 1, //window
334
-    error: 1, abort: 1, scroll: 1 }; //misc
335
-
336
-  function check(event) {
337
-    var related = event.relatedTarget;
338
-    if (!related) {
339
-      return related == null;
340
-    }
341
-    return (related != this && related.prefix != 'xul' && !/document/.test(this.toString()) && !isDescendant(this, related));
342
-  }
343
-
344
-  var customEvents = {
345
-    mouseenter: { base: 'mouseover', condition: check },
346
-    mouseleave: { base: 'mouseout', condition: check },
347
-    mousewheel: { base: /Firefox/.test(navigator.userAgent) ? 'DOMMouseScroll' : 'mousewheel' }
348
-  };
349
-
350
-  var bean = { add: add, remove: remove, clone: clone, fire: fire };
351
-
352
-  var clean = function (el) {
353
-    var uid = remove(el).__uid;
354
-    if (uid) {
355
-      delete collected[uid];
356
-      delete registry[uid];
357
-    }
358
-  };
359
-
360
-  if (context[attachEvent]) {
361
-    add(context, 'unload', function () {
362
-      for (var k in collected) {
363
-        collected.hasOwnProperty(k) && clean(collected[k]);
364
-      }
365
-      context.CollectGarbage && CollectGarbage();
366
-    });
367
-  }
368
-
369
-  var oldBean = context.bean;
370
-  bean.noConflict = function () {
371
-    context.bean = oldBean;
372
-    return this;
373
-  };
374
-
375
-  (typeof module !== 'undefined' && module.exports) ?
376
-    (module.exports = bean) :
377
-    (context['bean'] = bean);
378
-
379
-}(this);!function ($) {
380
-  var b = bean.noConflict(),
381
-      integrate = function (method, type, method2) {
382
-        var _args = type ? [type] : [];
383
-        return function () {
384
-          for (var args, i = 0, l = this.length; i < l; i++) {
385
-            args = [this[i]].concat(_args, Array.prototype.slice.call(arguments, 0));
386
-            args.length == 4 && args.push($);
387
-            !arguments.length && method == 'add' && type && (method = 'fire');
388
-            b[method].apply(this, args);
389
-          }
390
-          return this;
391
-        };
392
-      };
393
-
394
-  var add = integrate('add'),
395
-      remove = integrate('remove'),
396
-      fire = integrate('fire');
397
-
398
-  var methods = {
399
-
400
-    on: add,
401
-    addListener: add,
402
-    bind: add,
403
-    listen: add,
404
-    delegate: add,
405
-
406
-    unbind: remove,
407
-    unlisten: remove,
408
-    removeListener: remove,
409
-    undelegate: remove,
410
-
411
-    emit: fire,
412
-    trigger: fire,
413
-
414
-    cloneEvents: integrate('clone'),
415
-
416
-    hover: function (enter, leave) {
417
-      for (var i = 0, l = this.length; i < l; i++) {
418
-        b.add.call(this, this[i], 'mouseenter', enter);
419
-        b.add.call(this, this[i], 'mouseleave', leave);
420
-      }
421
-      return this;
422
-    }
423
-  };
424
-
425
-  var shortcuts = [
426
-    'blur', 'change', 'click', 'dblclick', 'error', 'focus', 'focusin',
427
-    'focusout', 'keydown', 'keypress', 'keyup', 'load', 'mousedown',
428
-    'mouseenter', 'mouseleave', 'mouseout', 'mouseover', 'mouseup',
429
-    'resize', 'scroll', 'select', 'submit', 'unload'
430
-  ];
431
-
432
-  for (var i = shortcuts.length; i--;) {
433
-    var shortcut = shortcuts[i];
434
-    methods[shortcut] = integrate('add', shortcut);
435
-  }
436
-
437
-  $.ender(methods, true);
438
-}(ender);
439
-/*!
440
-  * bonzo.js - copyright @dedfat 2011
441
-  * https://github.com/ded/bonzo
442
-  * Follow our software http://twitter.com/dedfat
443
-  * MIT License
444
-  */
445
-!function (context) {
446
-
447
-  var doc = context.document,
448
-      html = doc.documentElement,
449
-      query = null,
450
-      byTag = 'getElementsByTagName',
451
-      specialAttributes = /^checked|value|selected$/,
452
-      specialTags = /select|map|fieldset|table|tbody|tr|colgroup/i,
453
-      tagMap = { select: 'option', table: 'tbody', tr: 'td' },
454
-      stateAttributes = /^checked|selected$/,
455
-      ie = /msie/i.test(navigator.userAgent),
456
-      uidList = [],
457
-      uuids = 0,
458
-      digit = /^-?[\d\.]+$/,
459
-      px = 'px',
460
-      // commonly used methods
461
-      setAttribute = 'setAttribute',
462
-      getAttribute = 'getAttribute',
463
-      trimReplace = /(^\s*|\s*$)/g,
464
-      unitless = { lineHeight: 1, zoom: 1, zIndex: 1, opacity: 1 };
465
-
466
-  function classReg(c) {
467
-    return new RegExp("(^|\\s+)" + c + "(\\s+|$)");
468
-  }
469
-
470
-  function each(ar, fn, scope) {
471
-    for (var i = 0, l = ar.length; i < l; i++) {
472
-      fn.call(scope || ar[i], ar[i], i, ar);
473
-    }
474
-    return ar;
475
-  }
476
-
477
-  var trim = String.prototype.trim ?
478
-    function (s) {
479
-      return s.trim();
480
-    } :
481
-    function (s) {
482
-      return s.replace(trimReplace, '');
483
-    };
484
-
485
-  function camelize(s) {
486
-    return s.replace(/-(.)/g, function (m, m1) {
487
-      return m1.toUpperCase();
488
-    });
489
-  }
490
-
491
-  function is(node) {
492
-    return node && node.nodeName && node.nodeType == 1;
493
-  }
494
-
495
-  function some(ar, fn, scope) {
496
-    for (var i = 0, j = ar.length; i < j; ++i) {
497
-      if (fn.call(scope, ar[i], i, ar)) {
498
-        return true;
499
-      }
500
-    }
501
-    return false;
502
-  }
503
-
504
-  var getStyle = doc.defaultView && doc.defaultView.getComputedStyle ?
505
-    function (el, property) {
506
-      var value = null;
507
-      if (property == 'float') {
508
-        property = 'cssFloat';
509
-      }
510
-      var computed = doc.defaultView.getComputedStyle(el, '');
511
-      computed && (value = computed[camelize(property)]);
512
-      return el.style[property] || value;
513
-
514
-    } : (ie && html.currentStyle) ?
515
-
516
-    function (el, property) {
517
-      property = camelize(property);
518
-      property = property == 'float' ? 'styleFloat' : property;
519
-
520
-      if (property == 'opacity') {
521
-        var val = 100;
522
-        try {
523
-          val = el.filters['DXImageTransform.Microsoft.Alpha'].opacity;
524
-        } catch (e1) {
525
-          try {
526
-            val = el.filters('alpha').opacity;
527
-          } catch (e2) {}
528
-        }
529
-        return val / 100;
530
-      }
531
-      var value = el.currentStyle ? el.currentStyle[property] : null;
532
-      return el.style[property] || value;
533
-    } :
534
-
535
-    function (el, property) {
536
-      return el.style[camelize(property)];
537
-    };
538
-
539
-  function insert(target, host, fn) {
540
-    var i = 0, self = host || this, r = [];
541
-    each(normalize(query ? query(target) : target), function (t) {
542
-      each(self, function (el) {
543
-        var n = el.cloneNode(true);
544
-        fn(t, n);
545
-        r[i] = n;
546
-        i++;
547
-      });
548
-    }, this);
549
-    each(r, function (e, i) {
550
-      self[i] = e;
551
-    });
552
-    self.length = i;
553
-    return self;
554
-  }
555
-
556
-  function xy(el, x, y) {
557
-    var $el = bonzo(el),
558
-        style = $el.css('position'),
559
-        offset = $el.offset(),
560
-        rel = 'relative',
561
-        isRel = style == rel,
562
-        delta = [parseInt($el.css('left'), 10), parseInt($el.css('top'), 10)];
563
-
564
-    if (style == 'static') {
565
-      $el.css('position', rel);
566
-      style = rel;
567
-    }
568
-
569
-    isNaN(delta[0]) && (delta[0] = isRel ? 0 : el.offsetLeft);
570
-    isNaN(delta[1]) && (delta[1] = isRel ? 0 : el.offsetTop);
571
-
572
-    x !== null && (el.style.left = x - offset.left + delta[0] + 'px');
573
-    y !== null && (el.style.top = y - offset.top + delta[1] + 'px');
574
-
575
-  }
576
-
577
-  function Bonzo(elements) {
578
-    this.length = 0;
579
-    this.original = elements;
580
-    if (elements) {
581
-      elements = typeof elements !== 'string' &&
582
-        !elements.nodeType &&
583
-        typeof elements.length !== 'undefined' ?
584
-          elements :
585
-          [elements];
586
-      this.length = elements.length;
587
-      for (var i = 0; i < elements.length; i++) {
588
-        this[i] = elements[i];
589
-      }
590
-    }
591
-  }
592
-
593
-  Bonzo.prototype = {
594
-
595
-    each: function (fn, scope) {
596
-      return each(this, fn, scope);
597
-    },
598
-
599
-    map: function (fn, reject) {
600
-      var m = [], n, i;
601
-      for (i = 0; i < this.length; i++) {
602
-        n = fn.call(this, this[i]);
603
-        reject ? (reject(n) && m.push(n)) : m.push(n);
604
-      }
605
-      return m;
606
-    },
607
-
608
-    first: function () {
609
-      return bonzo(this[0]);
610
-    },
611
-
612
-    last: function () {
613
-      return bonzo(this[this.length - 1]);
614
-    },
615
-
616
-    html: function (h, text) {
617
-      var method = text ?
618
-        html.textContent == null ?
619
-          'innerText' :
620
-          'textContent' :
621
-        'innerHTML', m;
622
-      function append(el, tag) {
623
-        while (el.firstChild) {
624
-          el.removeChild(el.firstChild);
625
-        }
626
-        each(normalize(h, tag), function (node) {
627
-          el.appendChild(node);
628
-        });
629
-      }
630
-      return typeof h !== 'undefined' ?
631
-          this.each(function (el) {
632
-            (m = el.tagName.match(specialTags)) ?
633
-              append(el, m[0]) :
634
-              (el[method] = h);
635
-          }) :
636
-        this[0] ? this[0][method] : '';
637
-    },
638
-
639
-    text: function (text) {
640
-      return this.html(text, 1);
641
-    },
642
-
643
-    addClass: function (c) {
644
-      return this.each(function (el) {
645
-        this.hasClass(el, c) || (el.className = trim(el.className + ' ' + c));
646
-      }, this);
647
-    },
648
-
649
-    removeClass: function (c) {
650
-      return this.each(function (el) {
651
-        this.hasClass(el, c) && (el.className = trim(el.className.replace(classReg(c), ' ')));
652
-      }, this);
653
-    },
654
-
655
-    hasClass: function (el, c) {
656
-      return typeof c == 'undefined' ?
657
-        some(this, function (i) {
658
-          return classReg(el).test(i.className);
659
-        }) :
660
-        classReg(c).test(el.className);
661
-    },
662
-
663
-    toggleClass: function (c, condition) {
664
-      if (typeof condition !== 'undefined' && !condition) {
665
-        return this;
666
-      }
667
-      return this.each(function (el) {
668
-        this.hasClass(el, c) ?
669
-          (el.className = trim(el.className.replace(classReg(c), ' '))) :
670
-          (el.className = trim(el.className + ' ' + c));
671
-      }, this);
672
-    },
673
-
674
-    show: function (type) {
675
-      return this.each(function (el) {
676
-        el.style.display = type || '';
677
-      });
678
-    },
679
-
680
-    hide: function (elements) {
681
-      return this.each(function (el) {
682
-        el.style.display = 'none';
683
-      });
684
-    },
685
-
686
-    append: function (node) {
687
-      return this.each(function (el) {
688
-        each(normalize(node), function (i) {
689
-          el.appendChild(i);
690
-        });
691
-      });
692
-    },
693
-
694
-    prepend: function (node) {
695
-      return this.each(function (el) {
696
-        var first = el.firstChild;
697
-        each(normalize(node), function (i) {
698
-          el.insertBefore(i, first);
699
-        });
700
-      });
701
-    },
702
-
703
-    appendTo: function (target, host) {
704
-      return insert.call(this, target, host, function (t, el) {
705
-        t.appendChild(el);
706
-      });
707
-    },
708
-
709
-    prependTo: function (target, host) {
710
-      return insert.call(this, target, host, function (t, el) {
711
-        t.insertBefore(el, t.firstChild);
712
-      });
713
-    },
714
-
715
-    next: function () {
716
-      return this.related('nextSibling');
717
-    },
718
-
719
-    previous: function () {
720
-      return this.related('previousSibling');
721
-    },
722
-
723
-    related: function (method) {
724
-      return this.map(
725
-        function (el) {
726
-          el = el[method];
727
-          while (el && el.nodeType !== 1) {
728
-            el = el[method];
729
-          }
730
-          return el || 0;
731
-        },
732
-        function (el) {
733
-          return el;
734
-        }
735
-      );
736
-    },
737
-
738
-    before: function (node) {
739
-      return this.each(function (el) {
740
-        each(bonzo.create(node), function (i) {
741
-          el.parentNode.insertBefore(i, el);
742
-        });
743
-      });
744
-    },
745
-
746
-    after: function (node) {
747
-      return this.each(function (el) {
748
-        each(bonzo.create(node), function (i) {
749
-          el.parentNode.insertBefore(i, el.nextSibling);
750
-        });
751
-      });
752
-    },
753
-
754
-    insertBefore: function (target, host) {
755
-      return insert.call(this, target, host, function (t, el) {
756
-        t.parentNode.insertBefore(el, t);
757
-      });
758
-    },
759
-
760
-    insertAfter: function (target, host) {
761
-      return insert.call(this, target, host, function (t, el) {
762
-        var sibling = t.nextSibling;
763
-        if (sibling) {
764
-          t.parentNode.insertBefore(el, sibling);
765
-        }
766
-        else {
767
-          t.parentNode.appendChild(el);
768
-        }
769
-      });
770
-    },
771
-
772
-    css: function (o, v) {
773
-      // is this a request for just getting a style?
774
-      if (v === undefined && typeof o == 'string') {
775
-        return getStyle(this[0], o);
776
-      }
777
-      var iter = o;
778
-      if (typeof o == 'string') {
779
-        iter = {};
780
-        iter[o] = v;
781
-      }
782
-
783
-      if (ie && iter.opacity) {
784
-        // oh this 'ol gamut
785
-        iter.filter = 'alpha(opacity=' + (iter.opacity * 100) + ')';
786
-        // give it layout
787
-        iter.zoom = o.zoom || 1;
788
-        delete iter.opacity;
789
-      }
790
-
791
-      if (v = iter['float']) {
792
-        // float is a reserved style word. w3 uses cssFloat, ie uses styleFloat
793
-        ie ? (iter.styleFloat = v) : (iter.cssFloat = v);
794
-        delete iter['float'];
795
-      }
796
-
797
-      var fn = function (el, p, v) {
798
-        for (var k in iter) {
799
-          if (iter.hasOwnProperty(k)) {
800
-            v = iter[k];
801
-            // change "5" to "5px" - unless you're line-height, which is allowed
802
-            (p = camelize(k)) && digit.test(v) && !(p in unitless) && (v += px);
803
-            el.style[p] = v;
804
-          }
805
-        }
806
-      };
807
-      return this.each(fn);
808
-    },
809
-
810
-    offset: function (x, y) {
811
-      if (x || y) {
812
-        return this.each(function (el) {
813
-          xy(el, x, y);
814
-        });
815
-      }
816
-      var el = this[0];
817
-      var width = el.offsetWidth;
818
-      var height = el.offsetHeight;
819
-      var top = el.offsetTop;
820
-      var left = el.offsetLeft;
821
-      while (el = el.offsetParent) {
822
-        top = top + el.offsetTop;
823
-        left = left + el.offsetLeft;
824
-      }
825
-
826
-      return {
827
-        top: top,
828
-        left: left,
829
-        height: height,
830
-        width: width
831
-      };
832
-    },
833
-
834
-    attr: function (k, v) {
835
-      var el = this[0];
836
-      return typeof v == 'undefined' ?
837
-        specialAttributes.test(k) ?
838
-          stateAttributes.test(k) && typeof el[k] == 'string' ?
839
-            true : el[k] : el[getAttribute](k) :
840
-        this.each(function (el) {
841
-          k == 'value' ? (el.value = v) : el[setAttribute](k, v);
842
-        });
843
-    },
844
-
845
-    val: function (s) {
846
-      return (typeof s == 'string') ? this.attr('value', s) : this[0].value;
847
-    },
848
-
849
-    removeAttr: function (k) {
850
-      return this.each(function (el) {
851
-        el.removeAttribute(k);
852
-      });
853
-    },
854
-
855
-    data: function (k, v) {
856
-      var el = this[0];
857
-      if (typeof v === 'undefined') {
858
-        el[getAttribute]('data-node-uid') || el[setAttribute]('data-node-uid', ++uuids);
859
-        var uid = el[getAttribute]('data-node-uid');
860
-        uidList[uid] || (uidList[uid] = {});
861
-        return uidList[uid][k];
862
-      } else {
863
-        return this.each(function (el) {
864
-          el[getAttribute]('data-node-uid') || el[setAttribute]('data-node-uid', ++uuids);
865
-          var uid = el[getAttribute]('data-node-uid');
866
-          var o = {};
867
-          o[k] = v;
868
-          uidList[uid] = o;
869
-        });
870
-      }
871
-    },
872
-
873
-    remove: function () {
874
-      return this.each(function (el) {
875
-        el.parentNode && el.parentNode.removeChild(el);
876
-      });
877
-    },
878
-
879
-    empty: function () {
880
-      return this.each(function (el) {
881
-        while (el.firstChild) {
882
-          el.removeChild(el.firstChild);
883
-        }
884
-      });
885
-    },
886
-
887
-    detach: function () {
888
-      return this.map(function (el) {
889
-        return el.parentNode.removeChild(el);
890
-      });
891
-    },
892
-
893
-    scrollTop: function (y) {
894
-      return scroll.call(this, null, y, 'y');
895
-    },
896
-
897
-    scrollLeft: function (x) {
898
-      return scroll.call(this, x, null, 'x');
899
-    }
900
-  };
901
-
902
-  function normalize(node, tag) {
903
-    return typeof node == 'string' ? bonzo.create(node, tag) : is(node) ? [node] : node;
904
-  }
905
-
906
-  function scroll(x, y, type) {
907
-    var el = this[0];
908
-    if (x == null && y == null) {
909
-      return (isBody(el) ? getWindowScroll() : { x: el.scrollLeft, y: el.scrollTop })[type];
910
-    }
911
-    if (isBody(el)) {
912
-      window.scrollTo(x, y);
913
-    } else {
914
-      x != null && (el.scrollLeft = x);
915
-      y != null && (el.scrollTop = y);
916
-    }
917
-    return this;
918
-  }
919
-
920
-  function isBody(element) {
921
-    return element === window || (/^(?:body|html)$/i).test(element.tagName);
922
-  }
923
-
924
-  function getWindowScroll() {
925
-    return { x: window.pageXOffset || html.scrollLeft, y: window.pageYOffset || html.scrollTop };
926
-  }
927
-
928
-  function bonzo(els, host) {
929
-    return new Bonzo(els, host);
930
-  }
931
-
932
-  bonzo.setQueryEngine = function (q) {
933
-    query = q;
934
-    delete bonzo.setQueryEngine;
935
-  };
936
-
937
-  bonzo.aug = function (o, target) {
938
-    for (var k in o) {
939
-      o.hasOwnProperty(k) && ((target || Bonzo.prototype)[k] = o[k]);
940
-    }
941
-  };
942
-
943
-  bonzo.create = function (node, tag) {
944
-    return typeof node == 'string' ?
945
-      function () {
946
-        var t = tag ? tagMap[tag.toLowerCase()] : null;
947
-        var el = doc.createElement(t || 'div'), els = [];
948
-        if (tag) {
949
-          var bitches = node.match(new RegExp("<" + t + ">.+?<\\/" + t + ">", "g"));
950
-          each(bitches, function (m) {
951
-            m = m.replace(/<(.+)>(.+?)<\/\1>/, '$2');
952
-            var bah = doc.createElement(t);
953
-            bah.appendChild(doc.createDocumentFragment(m));
954
-            el.appendChild(bah);
955
-          });
956
-        } else {
957
-          el.innerHTML = node;
958
-        }
959
-        var nodes = el.childNodes;
960
-        el = el.firstChild;
961
-        els.push(el);
962
-        while (el = el.nextSibling) {
963
-          (el.nodeType == 1) && els.push(el);
964
-        }
965
-        return els;
966
-
967
-      }() : is(node) ? [node.cloneNode(true)] : [];
968
-  };
969
-
970
-  bonzo.doc = function () {
971
-    var w = html.scrollWidth,
972
-        h = html.scrollHeight,
973
-        vp = this.viewport();
974
-    return {
975
-      width: Math.max(w, vp.width),
976
-      height: Math.max(h, vp.height)
977
-    };
978
-  };
979
-
980
-  bonzo.firstChild = function (el) {
981
-    for (var c = el.childNodes, i = 0, j = (c && c.length) || 0, e; i < j; i++) {
982
-      if (c[i].nodeType === 1) {
983
-        e = c[j = i];
984
-      }
985
-    }
986
-    return e;
987
-  };
988
-
989
-  bonzo.viewport = function () {
990
-    var h = self.innerHeight,
991
-        w = self.innerWidth;
992
-    ie && (h = html.clientHeight) && (w = html.clientWidth);
993
-    return {
994
-      width: w,
995
-      height: h
996
-    };
997
-  };
998
-
999
-  bonzo.isAncestor = 'compareDocumentPosition' in html ?
1000
-    function (container, element) {
1001
-      return (container.compareDocumentPosition(element) & 16) == 16;
1002
-    } : 'contains' in html ?
1003
-    function (container, element) {
1004
-      return container !== element && container.contains(element);
1005
-    } :
1006
-    function (container, element) {
1007
-      while (element = element.parentNode) {
1008
-        if (element === container) {
1009
-          return true;
1010
-        }
1011
-      }
1012
-      return false;
1013
-    };
1014
-
1015
-  var old = context.bonzo;
1016
-  bonzo.noConflict = function () {
1017
-    context.bonzo = old;
1018
-    return this;
1019
-  };
1020
-  context['bonzo'] = bonzo;
1021
-
1022
-}(this);!function ($) {
1023
-
1024
-  var b = bonzo;
1025
-  b.setQueryEngine($);
1026
-  $.ender(b);
1027
-  $.ender(b(), true);
1028
-  $.ender({
1029
-    create: function (node) {
1030
-      return $(b.create(node));
1031
-    }
1032
-  });
1033
-
1034
-  $.id = function (id) {
1035
-    return $([document.getElementById(id)]);
1036
-  };
1037
-
1038
-  function indexOf(ar, val) {
1039
-    for (var i = 0; i < ar.length; i++) {
1040
-      if (ar[i] === val) {
1041
-        return i;
1042
-      }
1043
-    }
1044
-    return -1;
1045
-  }
1046
-
1047
-  function uniq(ar) {
1048
-    var a = [], i, j;
1049
-    label:
1050
-    for (i = 0; i < ar.length; i++) {
1051
-      for (j = 0; j < a.length; j++) {
1052
-        if (a[j] == ar[i]) {
1053
-          continue label;
1054
-        }
1055
-      }
1056
-      a[a.length] = ar[i];
1057
-    }
1058
-    return a;
1059
-  }
1060
-
1061
-  $.ender({
1062
-    parents: function (selector, closest) {
1063
-      var collection = $(selector), j, k, p, r = [];
1064
-      for (j = 0, k = this.length; j < k; j++) {
1065
-        p = this[j];
1066
-        while (p = p.parentNode) {
1067
-          if (indexOf(collection, p) !== -1) {
1068
-            r.push(p);
1069
-            if (closest) break;
1070
-          }
1071
-        }
1072
-      }
1073
-      return $(uniq(r));
1074
-    },
1075
-
1076
-    closest: function (selector) {
1077
-      return this.parents(selector, true);
1078
-    },
1079
-
1080
-    first: function () {
1081
-      return $(this[0]);
1082
-    },
1083
-
1084
-    last: function () {
1085
-      return $(this[this.length - 1]);
1086
-    },
1087
-
1088
-    next: function () {
1089
-      return $(b(this).next());
1090
-    },
1091
-
1092
-    previous: function () {
1093
-      return $(b(this).previous());
1094
-    },
1095
-
1096
-    appendTo: function (t) {
1097
-      return b(this.selector).appendTo(t, this);
1098
-    },
1099
-
1100
-    prependTo: function (t) {
1101
-      return b(this.selector).prependTo(t, this);
1102
-    },
1103
-
1104
-    insertAfter: function (t) {
1105
-      return b(this.selector).insertAfter(t, this);
1106
-    },
1107
-
1108
-    insertBefore: function (t) {
1109
-      return b(this.selector).insertBefore(t, this);
1110
-    },
1111
-
1112
-    siblings: function () {
1113
-      var i, l, p, r = [];
1114
-      for (i = 0, l = this.length; i < l; i++) {
1115
-        p = this[i];
1116
-        while (p = p.previousSibling) {
1117
-          p.nodeType == 1 && r.push(p);
1118
-        }
1119
-        p = this[i];
1120
-        while (p = p.nextSibling) {
1121
-          p.nodeType == 1 && r.push(p);
1122
-        }
1123
-      }
1124
-      return $(r);
1125
-    },
1126
-
1127
-    children: function () {
1128
-      var el, r = [];
1129
-      for (i = 0, l = this.length; i < l; i++) {
1130
-        if (!(el = b.firstChild(this[i]))) {
1131
-          continue;
1132
-        }
1133
-        r.push(el);
1134
-        while (el = el.nextSibling) {
1135
-          el.nodeType == 1 && r.push(el);
1136
-        }
1137
-      }
1138
-      return $(uniq(r));
1139
-    },
1140
-
1141
-    height: function (v) {
1142
-      return v ? this.css('height', v) : parseInt(this.css('height'), 10);
1143
-    },
1144
-
1145
-    width: function (v) {
1146
-      return v ? this.css('width', v) : parseInt(this.css('width'), 10);
1147
-    }
1148
-  }, true);
1149
-
1150
-}(ender || $);
1151
-
1152
-!function () { var exports = {}, module = { exports: exports }; !function (doc) {
1153
-  var loaded = 0, fns = [], ol, f = false,
1154
-      testEl = doc.createElement('a'),
1155
-      domContentLoaded = 'DOMContentLoaded',
1156
-      addEventListener = 'addEventListener',
1157
-      onreadystatechange = 'onreadystatechange';
1158
-
1159
-  /^loade|c/.test(doc.readyState) && (loaded = 1);
1160
-
1161
-  function flush() {
1162
-    loaded = 1;
1163
-    for (var i = 0, l = fns.length; i < l; i++) {
1164
-      fns[i]();
1165
-    }
1166
-  }
1167
-  doc[addEventListener] && doc[addEventListener](domContentLoaded, function fn() {
1168
-    doc.removeEventListener(domContentLoaded, fn, f);
1169
-    flush();
1170
-  }, f);
1171
-
1172
-
1173
-  testEl.doScroll && doc.attachEvent(onreadystatechange, (ol = function ol() {
1174
-    if (/^c/.test(doc.readyState)) {
1175
-      doc.detachEvent(onreadystatechange, ol);
1176
-      flush();
1177
-    }
1178
-  }));
1179
-
1180
-  var domReady = testEl.doScroll ?
1181
-    function (fn) {
1182
-      self != top ?
1183
-        !loaded ?
1184
-          fns.push(fn) :
1185
-          fn() :
1186
-        !function () {
1187
-          try {
1188
-            testEl.doScroll('left');
1189
-          } catch (e) {
1190
-            return setTimeout(function() {
1191
-              domReady(fn);
1192
-            }, 50);
1193
-          }
1194
-          fn();
1195
-        }();
1196
-    } :
1197
-    function (fn) {
1198
-      loaded ? fn() : fns.push(fn);
1199
-    };
1200
-
1201
-    (typeof module !== 'undefined') && module.exports ?
1202
-      (module.exports = {domReady: domReady}) :
1203
-      (window.domReady = domReady);
1204
-
1205
-}(document); $.ender(module.exports); }.call($);
1206
-/*!
1207
-  * qwery.js - copyright @dedfat
1208
-  * https://github.com/ded/qwery
1209
-  * Follow our software http://twitter.com/dedfat
1210
-  * MIT License
1211
-  */
1212
-
1213
-!function (context, doc) {
1214
-
1215
-  var c, i, j, k, l, m, o, p, r, v,
1216
-      el, node, len, found, classes, item, items, token,
1217
-      id = /#([\w\-]+)/,
1218
-      clas = /\.[\w\-]+/g,
1219
-      idOnly = /^#([\w\-]+$)/,
1220
-      classOnly = /^\.([\w\-]+)$/,
1221
-      tagOnly = /^([\w\-]+)$/,
1222
-      tagAndOrClass = /^([\w]+)?\.([\w\-]+)$/,
1223
-      html = doc.documentElement,
1224
-      tokenizr = /\s(?![\s\w\-\/\?\&\=\:\.\(\)\!,@#%<>\{\}\$\*\^'"]*\])/,
1225
-      specialChars = /([.*+?\^=!:${}()|\[\]\/\\])/g,
1226
-      simple = /^([a-z0-9]+)?(?:([\.\#]+[\w\-\.#]+)?)/,
1227
-      attr = /\[([\w\-]+)(?:([\|\^\$\*\~]?\=)['"]?([ \w\-\/\?\&\=\:\.\(\)\!,@#%<>\{\}\$\*\^]+)["']?)?\]/,
1228
-      chunker = new RegExp(simple.source + '(' + attr.source + ')?');
1229
-
1230
-  function array(ar) {
1231
-    r = [];
1232
-    for (i = 0, len = ar.length; i < len; i++) {
1233
-      r[i] = ar[i];
1234
-    }
1235
-    return r;
1236
-  }
1237
-
1238
-  var cache = function () {
1239
-    this.c = {};
1240
-  };
1241
-  cache.prototype = {
1242
-    g: function (k) {
1243
-      return this.c[k] || undefined;
1244
-    },
1245
-    s: function (k, v) {
1246
-      this.c[k] = v;
1247
-      return v;
1248
-    }
1249
-  };
1250
-
1251
-  var classCache = new cache(),
1252
-      cleanCache = new cache(),
1253
-      attrCache = new cache(),
1254
-      tokenCache = new cache();
1255
-
1256
-  function q(query) {
1257
-    return query.match(chunker);
1258
-  }
1259
-
1260
-  function interpret(whole, tag, idsAndClasses, wholeAttribute, attribute, qualifier, value) {
1261
-    var m, c, k;
1262
-    if (tag && this.tagName.toLowerCase() !== tag) {
1263
-      return false;
1264
-    }
1265
-    if (idsAndClasses && (m = idsAndClasses.match(id)) && m[1] !== this.id) {
1266
-      return false;
1267
-    }
1268
-    if (idsAndClasses && (classes = idsAndClasses.match(clas))) {
1269
-      for (i = classes.length; i--;) {
1270
-        c = classes[i].slice(1);
1271
-        if (!(classCache.g(c) || classCache.s(c, new RegExp('(^|\\s+)' + c + '(\\s+|$)'))).test(this.className)) {
1272
-          return false;
1273
-        }
1274
-      }
1275
-    }
1276
-    if (wholeAttribute && !value) {
1277
-      o = this.attributes;
1278
-      for (k in o) {
1279
-        if (Object.prototype.hasOwnProperty.call(o, k) && (o[k].name || k) == attribute) {
1280
-          return this;
1281
-        }
1282
-      }
1283
-    }
1284
-    if (wholeAttribute && !checkAttr(qualifier, this.getAttribute(attribute) || '', value)) {
1285
-      return false;
1286
-    }
1287
-    return this;
1288
-  }
1289
-
1290
-  function loopAll(tokens) {
1291
-    var r = [], token = tokens.pop(), intr = q(token), tag = intr[1] || '*', i, l, els,
1292
-        root = tokens.length && (m = tokens[0].match(idOnly)) ? doc.getElementById(m[1]) : doc;
1293
-    if (!root) {
1294
-      return r;
1295
-    }
1296
-    els = root.getElementsByTagName(tag);
1297
-    for (i = 0, l = els.length; i < l; i++) {
1298
-      el = els[i];
1299
-      if (item = interpret.apply(el, intr)) {
1300
-        r.push(item);
1301
-      }
1302
-    }
1303
-    return r;
1304
-  }
1305
-
1306
-  function clean(s) {
1307
-    return cleanCache.g(s) || cleanCache.s(s, s.replace(specialChars, '\\$1'));
1308
-  }
1309
-
1310
-  function checkAttr(qualify, actual, val) {
1311
-    switch (qualify) {
1312
-    case '=':
1313
-      return actual == val;
1314
-    case '^=':
1315
-      return actual.match(attrCache.g('^=' + val) || attrCache.s('^=' + val, new RegExp('^' + clean(val))));
1316
-    case '$=':
1317
-      return actual.match(attrCache.g('$=' + val) || attrCache.s('$=' + val, new RegExp(clean(val) + '$')));
1318
-    case '*=':
1319
-      return actual.match(attrCache.g(val) || attrCache.s(val, new RegExp(clean(val))));
1320
-    case '~=':
1321
-      return actual.match(attrCache.g('~=' + val) || attrCache.s('~=' + val, new RegExp('(?:^|\\s+)' + clean(val) + '(?:\\s+|$)')));
1322
-    case '|=':
1323
-      return actual.match(attrCache.g('|=' + val) || attrCache.s('|=' + val, new RegExp('^' + clean(val) + '(-|$)')));
1324
-    }
1325
-    return false;
1326
-  }
1327
-
1328
-  function _qwery(selector) {
1329
-    var r = [], ret = [], i, l,
1330
-        tokens = tokenCache.g(selector) || tokenCache.s(selector, selector.split(tokenizr));
1331
-    tokens = tokens.slice(0);
1332
-    if (!tokens.length) {
1333
-      return r;
1334
-    }
1335
-    r = loopAll(tokens);
1336
-    if (!tokens.length) {
1337
-      return r;
1338
-    }
1339
-    // loop through all descendent tokens
1340
-    for (j = 0, l = r.length, k = 0; j < l; j++) {
1341
-      node = r[j];
1342
-      p = node;
1343
-      // loop through each token
1344
-      for (i = tokens.length; i--;) {
1345
-        z: // loop through parent nodes
1346
-        while (p !== html && (p = p.parentNode)) {
1347
-          if (found = interpret.apply(p, q(tokens[i]))) {
1348
-            break z;
1349
-          }
1350
-        }
1351
-      }
1352
-      found && (ret[k++] = node);
1353
-    }
1354
-    return ret;
1355
-  }
1356
-
1357
-  function boilerPlate(selector, _root, fn) {
1358
-    var root = (typeof _root == 'string') ? fn(_root)[0] : (_root || doc);
1359
-    if (selector === window || isNode(selector)) {
1360
-      return !_root || (selector !== window && isNode(root) && isAncestor(selector, root)) ? [selector] : [];
1361
-    }
1362
-    if (selector && typeof selector === 'object' && isFinite(selector.length)) {
1363
-      return array(selector);
1364
-    }
1365
-    if (m = selector.match(idOnly)) {
1366
-      return (el = doc.getElementById(m[1])) ? [el] : [];
1367
-    }
1368
-    if (m = selector.match(tagOnly)) {
1369
-      return array(root.getElementsByTagName(m[1]));
1370
-    }
1371
-    return false;
1372
-  }
1373
-
1374
-  function isNode(el) {
1375
-    return (el && el.nodeType && (el.nodeType == 1 || el.nodeType == 9));
1376
-  }
1377
-
1378
-  function uniq(ar) {
1379
-    var a = [], i, j;
1380
-    label:
1381
-    for (i = 0; i < ar.length; i++) {
1382
-      for (j = 0; j < a.length; j++) {
1383
-        if (a[j] == ar[i]) {
1384
-          continue label;
1385
-        }
1386
-      }
1387
-      a[a.length] = ar[i];
1388
-    }
1389
-    return a;
1390
-  }
1391
-
1392
-  function qwery(selector, _root) {
1393
-    var root = (typeof _root == 'string') ? qwery(_root)[0] : (_root || doc);
1394
-    if (!root || !selector) {
1395
-      return [];
1396
-    }
1397
-    if (m = boilerPlate(selector, _root, qwery)) {
1398
-      return m;
1399
-    }
1400
-    return select(selector, root);
1401
-  }
1402
-
1403
-  var isAncestor = 'compareDocumentPosition' in html ?
1404
-    function (element, container) {
1405
-      return (container.compareDocumentPosition(element) & 16) == 16;
1406
-    } : 'contains' in html ?
1407
-    function (element, container) {
1408
-      container = container == doc || container == window ? html : container;
1409
-      return container !== element && container.contains(element);
1410
-    } :
1411
-    function (element, container) {
1412
-      while (element = element.parentNode) {
1413
-        if (element === container) {
1414
-          return 1;
1415
-        }
1416
-      }
1417
-      return 0;
1418
-    },
1419
-
1420
-  select = (doc.querySelector && doc.querySelectorAll) ?
1421
-    function (selector, root) {
1422
-      if (doc.getElementsByClassName && (m = selector.match(classOnly))) {
1423
-        return array((root).getElementsByClassName(m[1]));
1424
-      }
1425
-      return array((root).querySelectorAll(selector));
1426
-    } :
1427
-    function (selector, root) {
1428
-      var result = [], collection, collections = [], i;
1429
-      if (m = selector.match(tagAndOrClass)) {
1430
-        items = root.getElementsByTagName(m[1] || '*');
1431
-        r = classCache.g(m[2]) || classCache.s(m[2], new RegExp('(^|\\s+)' + m[2] + '(\\s+|$)'));
1432
-        for (i = 0, l = items.length, j = 0; i < l; i++) {
1433
-          r.test(items[i].className) && (result[j++] = items[i]);
1434
-        }
1435
-        return result;
1436
-      }
1437
-      for (i = 0, items = selector.split(','), l = items.length; i < l; i++) {
1438
-        collections[i] = _qwery(items[i]);
1439
-      }
1440
-      for (i = 0, l = collections.length; i < l && (collection = collections[i]); i++) {
1441
-        var ret = collection;
1442
-        if (root !== doc) {
1443
-          ret = [];
1444
-          for (j = 0, m = collection.length; j < m && (element = collection[j]); j++) {
1445
-            // make sure element is a descendent of root
1446
-            isAncestor(element, root) && ret.push(element);
1447
-          }
1448
-        }
1449
-        result = result.concat(ret);
1450
-      }
1451
-      return uniq(result);
1452
-    };
1453
-
1454
-  qwery.uniq = uniq;
1455
-  var oldQwery = context.qwery;
1456
-  qwery.noConflict = function () {
1457
-    context.qwery = oldQwery;
1458
-    return this;
1459
-  };
1460
-  context['qwery'] = qwery;
1461
-
1462
-}(this, document);!function (doc) {
1463
-  var q = qwery.noConflict();
1464
-  function create(node, root) {
1465
-    var el = (root || doc).createElement('div'), els = [];
1466
-    el.innerHTML = node;
1467
-    var nodes = el.childNodes;
1468
-    el = el.firstChild;
1469
-    els.push(el);
1470
-    while (el = el.nextSibling) {
1471
-      (el.nodeType == 1) && els.push(el);
1472
-    }
1473
-    return els;
1474
-  };
1475
-  $._select = function (s, r) {
1476
-    return /^\s*</.test(s) ? create(s, r) : q(s, r);
1477
-  };
1478
-  $.ender({
1479
-    find: function (s) {
1480
-      var r = [], i, l, j, k, els;
1481
-      for (i = 0, l = this.length; i < l; i++) {
1482
-        els = q(s, this[i]);
1483
-        for (j = 0, k = els.length; j < k; j++) {
1484
-          r.push(els[j]);
1485
-        }
1486
-      }
1487
-      return $(q.uniq(r));
1488
-    }
1489
-    , and: function (s) {
1490
-      var plus = $(s);
1491
-      for (var i = this.length, j = 0, l = this.length + plus.length; i < l; i++, j++) {
1492
-        this[i] = plus[j];
1493
-      }
1494
-      return this;
1495
-    }
1496
-  }, true);
1497
-}(document);
1498 1
deleted file mode 100644
... ...
@@ -1,8 +0,0 @@
1
-/*!
2
-  * Ender: open module JavaScript framework
3
-  * copyright Dustin Diaz & Jacob Thornton 2011 (@ded @fat)
4
-  * https://ender.no.de
5
-  * License MIT
6
-  * Build: ender -b jeesh
7
-  */
8
-!function(a){function d(a,b){return c(a,b)}function c(a,e){var f;d._select&&typeof a=="string"||a.nodeName||a.length&&"item"in a||a==window?(f=d._select(a,e),f.selector=a):f=isFinite(a.length)?a:[a];return b(f,c)}function b(a,b){for(var c in b)c!="noConflict"&&c!="_VERSION"&&(a[c]=b[c]);return a}b(d,{_VERSION:"0.2.0",ender:function(a,e){b(e?c:d,a)}}),b(c,{forEach:function(a,b){for(var c=0,d=this.length;c<d;++c)c in this&&a.call(b||this[c],this[c],c,this);return this}});var e=a.$;d.noConflict=function(){a.$=e;return this},typeof module!="undefined"&&module.exports&&(module.exports=d),a.ender=a.$=d}(this),!function(a){function F(a){var b=a.relatedTarget;if(!b)return b==null;return b!=this&&b.prefix!="xul"&&!/document/.test(this.toString())&&!p(this,b)}var b=1,c={},d={},e=/over|out/,f=/[^\.]*(?=\..*)\.|.*/,g=/\..*/,h="addEventListener",i="attachEvent",j="removeEventListener",k="detachEvent",l=a.document||{},m=l.documentElement||{},n=m[h],o=n?h:i,p=function(a,b){var c=b.parentNode;while(c!=null){if(c==a)return!0;c=c.parentNode}},q=function(a,c){return a.__uid=c||a.__uid||b++},r=function(a){var b=q(a);return c[b]=c[b]||{}},s=n?function(a,b,c,d){a[d?h:j](b,c,!1)}:function(a,b,c,d,e){e&&d&&(a["_on"+e]=a["_on"+e]||0),a[d?i:k]("on"+b,c)},t=function(b,c,d){return function(e){e=D(e||((this.ownerDocument||this.document||this).parentWindow||a).event);return c.apply(b,[e].concat(d))}},u=function(a,b,c,d,e){return function(f){(d?d.call(this,f):n?!0:f&&f.propertyName=="_on"+c||!f)&&b.apply(a,[f].concat(e))}},v=function(a,b,c,e){var h=b.replace(g,""),i=r(a),j=i[h]||(i[h]={}),k=q(c,b.replace(f,""));if(j[k])return a;var l=G[h];l&&(c=l.condition?u(a,c,h,l.condition):c,h=l.base||h);var m=E[h];c=m?t(a,c,e):u(a,c,h,!1,e),m=n||m;if(h=="unload"){var p=c;c=function(){w(a,h,c)&&p()}}a[o]&&s(a,m?h:"propertychange",c,!0,!m&&h),j[k]=c,c.__uid=k;return h=="unload"?a:d[q(a)]=a},w=function(a,b,c){var d,e,h,i,j=r(a),k=b.replace(g,"");if(!j||!j[k])return a;e=b.replace(f,""),h=e?e.split("."):[c.__uid];for(i=h.length;i--;){d=h[i],c=j[k][d],delete j[k][d];if(a[o]){k=G[k]?G[k].base:k;var l=n||E[k];s(a,l?k:"propertychange",c,!1,!l&&k)}}return a},x=function(a,b,c){return function(d){var e=typeof a=="string"?c(a,this):a;for(var f=d.target;f&&f!=this;f=f.parentNode)for(var g=e.length;g--;)if(e[g]==f)return b.apply(f,arguments)}},y=function(a,b,c,d,e){if(typeof b=="object"&&!c)for(var f in b)b.hasOwnProperty(f)&&y(a,f,b[f]);else{var g=typeof c=="string",h=(g?c:b).split(" ");c=g?x(b,d,e):c;for(var i=h.length;i--;)v(a,h[i],c,Array.prototype.slice.call(arguments,g?4:3))}return a},z=function(a,b,c){var d,e,h,i=typeof b=="string",j=i&&b.replace(f,""),k=w,l=r(a);if(i&&/\s/.test(b)){b=b.split(" ");var m=b.length-1;while(z(a,b[m])&&m--);return a}h=i?b.replace(g,""):b;if(!l||i&&!l[h])return a;if(typeof c=="function")k(a,h,c);else if(j)k(a,b);else{k=h?k:z,e=i&&h,h=h?c||l[h]||h:l;for(d in h)h.hasOwnProperty(d)&&k(a,e||d,h[d])}return a},A=function(a,b,c){var d,e,h,i=b.split(" ");for(h=i.length;h--;){b=i[h].replace(g,"");var j=E[b],k=i[h].replace(f,""),l=r(a)[b];if(k){k=k.split(".");for(e=k.length;e--;)l[k[e]]&&l[k[e]].apply(a,c)}else if(!c&&a[o])B(j,b,a);else for(e in l)l.hasOwnProperty(e)&&l[e].apply(a,c)}return a},B=n?function(b,c,d){evt=document.createEvent(b?"HTMLEvents":"UIEvents"),evt[b?"initEvent":"initUIEvent"](c,!0,!0,a,1),d.dispatchEvent(evt)}:function(a,b,c){a?c.fireEvent("on"+b,document.createEventObject()):c["_on"+b]++},C=function(a,b,c){var d=r(b),e,f;e=c?d[c]:d;for(f in e)e.hasOwnProperty(f)&&(c?y:C)(a,c||b,c?e[f]:f);return a},D=function(a){var b={};if(!a)return b;var c=a.type,d=a.target||a.srcElement;b.preventDefault=D.preventDefault(a),b.stopPropagation=D.stopPropagation(a),b.target=d&&d.nodeType==3?d.parentNode:d;if(~c.indexOf("key"))b.keyCode=a.which||a.keyCode;else if(/click|mouse|menu/i.test(c)){b.rightClick=a.which==3||a.button==2,b.pos={x:0,y:0};if(a.pageX||a.pageY)b.clientX=a.pageX,b.clientY=a.pageY;else if(a.clientX||a.clientY)b.clientX=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,b.clientY=a.clientY+document.body.scrollTop+document.documentElement.scrollTop;e.test(c)&&(b.relatedTarget=a.relatedTarget||a[(c=="mouseover"?"from":"to")+"Element"])}for(var f in a)f in b||(b[f]=a[f]);return b};D.preventDefault=function(a){return function(){a.preventDefault?a.preventDefault():a.returnValue=!1}},D.stopPropagation=function(a){return function(){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}};var E={click:1,dblclick:1,mouseup:1,mousedown:1,contextmenu:1,mousewheel:1,DOMMouseScroll:1,mouseover:1,mouseout:1,mousemove:1,selectstart:1,selectend:1,keydown:1,keypress:1,keyup:1,orientationchange:1,touchstart:1,touchmove:1,touchend:1,touchcancel:1,gesturestart:1,gesturechange:1,gestureend:1,focus:1,blur:1,change:1,reset:1,select:1,submit:1,load:1,unload:1,beforeunload:1,resize:1,move:1,DOMContentLoaded:1,readystatechange:1,error:1,abort:1,scroll:1},G={mouseenter:{base:"mouseover",condition:F},mouseleave:{base:"mouseout",condition:F},mousewheel:{base:/Firefox/.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel"}},H={add:y,remove:z,clone:C,fire:A},I=function(a){var b=z(a).__uid;b&&(delete d[b],delete c[b])};a[i]&&y(a,"unload",function(){for(var b in d)d.hasOwnProperty(b)&&I(d[b]);a.CollectGarbage&&CollectGarbage()});var J=a.bean;H.noConflict=function(){a.bean=J;return this},typeof module!="undefined"&&module.exports?module.exports=H:a.bean=H}(this),!function(a){var b=bean.noConflict(),c=function(c,d,e){var f=d?[d]:[];return function(){for(var e,g=0,h=this.length;g<h;g++)e=[this[g]].concat(f,Array.prototype.slice.call(arguments,0)),e.length==4&&e.push(a),!arguments.length&&c=="add"&&d&&(c="fire"),b[c].apply(this,e);return this}},d=c("add"),e=c("remove"),f=c("fire"),g={on:d,addListener:d,bind:d,listen:d,delegate:d,unbind:e,unlisten:e,removeListener:e,undelegate:e,emit:f,trigger:f,cloneEvents:c("clone"),hover:function(a,c){for(var d=0,e=this.length;d<e;d++)b.add.call(this,this[d],"mouseenter",a),b.add.call(this,this[d],"mouseleave",c);return this}},h=["blur","change","click","dblclick","error","focus","focusin","focusout","keydown","keypress","keyup","load","mousedown","mouseenter","mouseleave","mouseout","mouseover","mouseup","resize","scroll","select","submit","unload"];for(var i=h.length;i--;){var j=h[i];g[j]=c("add",j)}a.ender(g,!0)}(ender),!function(a){function G(a,b){return new B(a,b)}function F(){return{x:window.pageXOffset||c.scrollLeft,y:window.pageYOffset||c.scrollTop}}function E(a){return a===window||/^(?:body|html)$/i.test(a.tagName)}function D(a,b,c){var d=this[0];if(a==null&&b==null)return(E(d)?F():{x:d.scrollLeft,y:d.scrollTop})[c];E(d)?window.scrollTo(a,b):(a!=null&&(d.scrollLeft=a),b!=null&&(d.scrollTop=b));return this}function C(a,b){return typeof a=="string"?G.create(a,b):w(a)?[a]:a}function B(a){this.length=0,this.original=a;if(a){a=typeof a!="string"&&!a.nodeType&&typeof a.length!="undefined"?a:[a],this.length=a.length;for(var b=0;b<a.length;b++)this[b]=a[b]}}function A(a,b,c){var d=G(a),e=d.css("position"),f=d.offset(),g="relative",h=e==g,i=[parseInt(d.css("left"),10),parseInt(d.css("top"),10)];e=="static"&&(d.css("position",g),e=g),isNaN(i[0])&&(i[0]=h?0:a.offsetLeft),isNaN(i[1])&&(i[1]=h?0:a.offsetTop),b!==null&&(a.style.left=b-f.left+i[0]+"px"),c!==null&&(a.style.top=c-f.top+i[1]+"px")}function z(a,b,c){var e=0,f=b||this,g=[];t(C(d?d(a):a),function(a){t(f,function(b){var d=b.cloneNode(!0);c(a,d),g[e]=d,e++})},this),t(g,function(a,b){f[b]=a}),f.length=e;return f}function x(a,b,c){for(var d=0,e=a.length;d<e;++d)if(b.call(c,a[d],d,a))return!0;return!1}function w(a){return a&&a.nodeName&&a.nodeType==1}function v(a){return a.replace(/-(.)/g,function(a,b){return b.toUpperCase()})}function t(a,b,c){for(var d=0,e=a.length;d<e;d++)b.call(c||a[d],a[d],d,a);return a}function s(a){return new RegExp("(^|\\s+)"+a+"(\\s+|$)")}var b=a.document,c=b.documentElement,d=null,e="getElementsByTagName",f=/^checked|value|selected$/,g=/select|map|fieldset|table|tbody|tr|colgroup/i,h={select:"option",table:"tbody",tr:"td"},i=/^checked|selected$/,j=/msie/i.test(navigator.userAgent),k=[],l=0,m=/^-?[\d\.]+$/,n="px",o="setAttribute",p="getAttribute",q=/(^\s*|\s*$)/g,r={lineHeight:1,zoom:1,zIndex:1,opacity:1},u=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(q,"")},y=b.defaultView&&b.defaultView.getComputedStyle?function(a,c){var d=null;c=="float"&&(c="cssFloat");var e=b.defaultView.getComputedStyle(a,"");e&&(d=e[v(c)]);return a.style[c]||d}:j&&c.currentStyle?function(a,b){b=v(b),b=b=="float"?"styleFloat":b;if(b=="opacity"){var c=100;try{c=a.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(d){try{c=a.filters("alpha").opacity}catch(e){}}return c/100}var f=a.currentStyle?a.currentStyle[b]:null;return a.style[b]||f}:function(a,b){return a.style[v(b)]};B.prototype={each:function(a,b){return t(this,a,b)},map:function(a,b){var c=[],d,e;for(e=0;e<this.length;e++)d=a.call(this,this[e]),b?b(d)&&c.push(d):c.push(d);return c},first:function(){return G(this[0])},last:function(){return G(this[this.length-1])},html:function(a,b){function f(b,c){while(b.firstChild)b.removeChild(b.firstChild);t(C(a,c),function(a){b.appendChild(a)})}var d=b?c.textContent==null?"innerText":"textContent":"innerHTML",e;return typeof a!="undefined"?this.each(function(b){(e=b.tagName.match(g))?f(b,e[0]):b[d]=a}):this[0]?this[0][d]:""},text:function(a){return this.html(a,1)},addClass:function(a){return this.each(function(b){this.hasClass(b,a)||(b.className=u(b.className+" "+a))},this)},removeClass:function(a){return this.each(function(b){this.hasClass(b,a)&&(b.className=u(b.className.replace(s(a)," ")))},this)},hasClass:function(a,b){return typeof b=="undefined"?x(this,function(b){return s(a).test(b.className)}):s(b).test(a.className)},toggleClass:function(a,b){if(typeof b!="undefined"&&!b)return this;return this.each(function(b){this.hasClass(b,a)?b.className=u(b.className.replace(s(a)," ")):b.className=u(b.className+" "+a)},this)},show:function(a){return this.each(function(b){b.style.display=a||""})},hide:function(a){return this.each(function(a){a.style.display="none"})},append:function(a){return this.each(function(b){t(C(a),function(a){b.appendChild(a)})})},prepend:function(a){return this.each(function(b){var c=b.firstChild;t(C(a),function(a){b.insertBefore(a,c)})})},appendTo:function(a,b){return z.call(this,a,b,function(a,b){a.appendChild(b)})},prependTo:function(a,b){return z.call(this,a,b,function(a,b){a.insertBefore(b,a.firstChild)})},next:function(){return this.related("nextSibling")},previous:function(){return this.related("previousSibling")},related:function(a){return this.map(function(b){b=b[a];while(b&&b.nodeType!==1)b=b[a];return b||0},function(a){return a})},before:function(a){return this.each(function(b){t(G.create(a),function(a){b.parentNode.insertBefore(a,b)})})},after:function(a){return this.each(function(b){t(G.create(a),function(a){b.parentNode.insertBefore(a,b.nextSibling)})})},insertBefore:function(a,b){return z.call(this,a,b,function(a,b){a.parentNode.insertBefore(b,a)})},insertAfter:function(a,b){return z.call(this,a,b,function(a,b){var c=a.nextSibling;c?a.parentNode.insertBefore(b,c):a.parentNode.appendChild(b)})},css:function(a,b){if(b===undefined&&typeof a=="string")return y(this[0],a);var c=a;typeof a=="string"&&(c={},c[a]=b),j&&c.opacity&&(c.filter="alpha(opacity="+c.opacity*100+")",c.zoom=a.zoom||1,delete c.opacity);if(b=c["float"])j?c.styleFloat=b:c.cssFloat=b,delete c["float"];var d=function(a,b,d){for(var e in c)c.hasOwnProperty(e)&&(d=c[e],(b=v(e))&&m.test(d)&&!(b in r)&&(d+=n),a.style[b]=d)};return this.each(d)},offset:function(a,b){if(a||b)return this.each(function(c){A(c,a,b)});var c=this[0],d=c.offsetWidth,e=c.offsetHeight,f=c.offsetTop,g=c.offsetLeft;while(c=c.offsetParent)f=f+c.offsetTop,g=g+c.offsetLeft;return{top:f,left:g,height:e,width:d}},attr:function(a,b){var c=this[0];return typeof b=="undefined"?f.test(a)?i.test(a)&&typeof c[a]=="string"?!0:c[a]:c[p](a):this.each(function(c){a=="value"?c.value=b:c[o](a,b)})},val:function(a){return typeof a=="string"?this.attr("value",a):this[0].value},removeAttr:function(a){return this.each(function(b){b.removeAttribute(a)})},data:function(a,b){var c=this[0];if(typeof b=="undefined"){c[p]("data-node-uid")||c[o]("data-node-uid",++l);var d=c[p]("data-node-uid");k[d]||(k[d]={});return k[d][a]}return this.each(function(c){c[p]("data-node-uid")||c[o]("data-node-uid",++l);var d=c[p]("data-node-uid"),e={};e[a]=b,k[d]=e})},remove:function(){return this.each(function(a){a.parentNode&&a.parentNode.removeChild(a)})},empty:function(){return this.each(function(a){while(a.firstChild)a.removeChild(a.firstChild)})},detach:function(){return this.map(function(a){return a.parentNode.removeChild(a)})},scrollTop:function(a){return D.call(this,null,a,"y")},scrollLeft:function(a){return D.call(this,a,null,"x")}},G.setQueryEngine=function(a){d=a,delete G.setQueryEngine},G.aug=function(a,b){for(var c in a)a.hasOwnProperty(c)&&((b||B.prototype)[c]=a[c])},G.create=function(a,c){return typeof a=="string"?function(){var d=c?h[c.toLowerCase()]:null,e=b.createElement(d||"div"),f=[];if(c){var g=a.match(new RegExp("<"+d+">.+?<\\/"+d+">","g"));t(g,function(a){a=a.replace(/<(.+)>(.+?)<\/\1>/,"$2");var c=b.createElement(d);c.appendChild(b.createDocumentFragment(a)),e.appendChild(c)})}else e.innerHTML=a;var i=e.childNodes;e=e.firstChild,f.push(e);while(e=e.nextSibling)e.nodeType==1&&f.push(e);return f}():w(a)?[a.cloneNode(!0)]:[]},G.doc=function(){var a=c.scrollWidth,b=c.scrollHeight,d=this.viewport();return{width:Math.max(a,d.width),height:Math.max(b,d.height)}},G.firstChild=function(a){for(var b=a.childNodes,c=0,d=b&&b.length||0,e;c<d;c++)b[c].nodeType===1&&(e=b[d=c]);return e},G.viewport=function(){var a=self.innerHeight,b=self.innerWidth;j&&(a=c.clientHeight)&&(b=c.clientWidth);return{width:b,height:a}},G.isAncestor="compareDocumentPosition"in c?function(a,b){return(a.compareDocumentPosition(b)&16)==16}:"contains"in c?function(a,b){return a!==b&&a.contains(b)}:function(a,b){while(b=b.parentNode)if(b===a)return!0;return!1};var H=a.bonzo;G.noConflict=function(){a.bonzo=H;return this},a.bonzo=G}(this),!function(a){function d(a){var b=[],c,d;label:for(c=0;c<a.length;c++){for(d=0;d<b.length;d++)if(b[d]==a[c])continue label;b[b.length]=a[c]}return b}function c(a,b){for(var c=0;c<a.length;c++)if(a[c]===b)return c;return-1}var b=bonzo;b.setQueryEngine(a),a.ender(b),a.ender(b(),!0),a.ender({create:function(c){return a(b.create(c))}}),a.id=function(b){return a([document.getElementById(b)])},a.ender({parents:function(b,e){var f=a(b),g,h,i,j=[];for(g=0,h=this.length;g<h;g++){i=this[g];while(i=i.parentNode)if(c(f,i)!==-1){j.push(i);if(e)break}}return a(d(j))},closest:function(a){return this.parents(a,!0)},first:function(){return a(this[0])},last:function(){return a(this[this.length-1])},next:function(){return a(b(this).next())},previous:function(){return a(b(this).previous())},appendTo:function(a){return b(this.selector).appendTo(a,this)},prependTo:function(a){return b(this.selector).prependTo(a,this)},insertAfter:function(a){return b(this.selector).insertAfter(a,this)},insertBefore:function(a){return b(this.selector).insertBefore(a,this)},siblings:function(){var b,c,d,e=[];for(b=0,c=this.length;b<c;b++){d=this[b];while(d=d.previousSibling)d.nodeType==1&&e.push(d);d=this[b];while(d=d.nextSibling)d.nodeType==1&&e.push(d)}return a(e)},children:function(){var c,e=[];for(i=0,l=this.length;i<l;i++){if(!(c=b.firstChild(this[i])))continue;e.push(c);while(c=c.nextSibling)c.nodeType==1&&e.push(c)}return a(d(e))},height:function(a){return a?this.css("height",a):parseInt(this.css("height"),10)},width:function(a){return a?this.css("width",a):parseInt(this.css("width"),10)}},!0)}(ender||$),!function(){var a={},b={exports:a};!function(a){function k(){c=1;for(var a=0,b=d.length;a<b;a++)d[a]()}var c=0,d=[],e,f=!1,g=a.createElement("a"),h="DOMContentLoaded",i="addEventListener",j="onreadystatechange";/^loade|c/.test(a.readyState)&&(c=1),a[i]&&a[i](h,function b(){a.removeEventListener(h,b,f),k()},f),g.doScroll&&a.attachEvent(j,e=function b(){/^c/.test(a.readyState)&&(a.detachEvent(j,b),k())});var l=g.doScroll?function(a){self!=top?c?a():d.push(a):!function(){try{g.doScroll("left")}catch(b){return setTimeout(function(){l(a)},50)}a()}()}:function(a){c?a():d.push(a)};typeof b!="undefined"&&b.exports?b.exports={domReady:l}:window.domReady=l}(document),$.ender(b.exports)}.call($),!function(a,b){function V(a,c){var d=typeof c=="string"?V(c)[0]:c||b;if(!d||!a)return[];if(h=S(a,c,V))return h;return X(a,d)}function U(a){var b=[],c,d;label:for(c=0;c<a.length;c++){for(d=0;d<b.length;d++)if(b[d]==a[c])continue label;b[b.length]=a[c]}return b}function T(a){return a&&a.nodeType&&(a.nodeType==1||a.nodeType==9)}function S(a,c,d){var e=typeof c=="string"?d(c)[0]:c||b;if(a===window||T(a))return!c||a!==window&&T(e)&&W(a,e)?[a]:[];if(a&&typeof a=="object"&&isFinite(a.length))return G(a);if(h=a.match(w))return(m=b.getElementById(h[1]))?[m]:[];if(h=a.match(y))return G(e.getElementsByTagName(h[1]));return!1}function R(a){var b=[],c=[],d,g,h=L.g(a)||L.s(a,a.split(B));h=h.slice(0);if(!h.length)return b;b=O(h);if(!h.length)return b;for(e=0,g=b.length,f=0;e<g;e++){n=b[e],j=n;for(d=h.length;d--;)z:while(j!==A&&(j=j.parentNode))if(p=N.apply(j,M(h[d])))break z;p&&(c[f++]=n)}return c}function Q(a,b,c){switch(a){case"=":return b==c;case"^=":return b.match(K.g("^="+c)||K.s("^="+c,new RegExp("^"+P(c))));case"$=":return b.match(K.g("$="+c)||K.s("$="+c,new RegExp(P(c)+"$")));case"*=":return b.match(K.g(c)||K.s(c,new RegExp(P(c))));case"~=":return b.match(K.g("~="+c)||K.s("~="+c,new RegExp("(?:^|\\s+)"+P(c)+"(?:\\s+|$)")));case"|=":return b.match(K.g("|="+c)||K.s("|="+c,new RegExp("^"+P(c)+"(-|$)")))}return!1}function P(a){return J.g(a)||J.s(a,a.replace(C,"\\$1"))}function O(a){var c=[],d=a.pop(),e=M(d),f=e[1]||"*",g,i,j,k=a.length&&(h=a[0].match(w))?b.getElementById(h[1]):b;if(!k)return c;j=k.getElementsByTagName(f);for(g=0,i=j.length;g<i;g++)m=j[g],(r=N.apply(m,e))&&c.push(r);return c}function N(a,b,c,e,f,g,h){var j,k,l;if(b&&this.tagName.toLowerCase()!==b)return!1;if(c&&(j=c.match(u))&&j[1]!==this.id)return!1;if(c&&(q=c.match(v)))for(d=q.length;d--;){k=q[d].slice(1);if(!(I.g(k)||I.s(k,new RegExp("(^|\\s+)"+k+"(\\s+|$)"))).test(this.className))return!1}if(e&&!h){i=this.attributes;for(l in i)if(Object.prototype.hasOwnProperty.call(i,l)&&(i[l].name||l)==f)return this}if(e&&!Q(g,this.getAttribute(f)||"",h))return!1;return this}function M(a){return a.match(F)}function G(a){k=[];for(d=0,o=a.length;d<o;d++)k[d]=a[d];return k}var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u=/#([\w\-]+)/,v=/\.[\w\-]+/g,w=/^#([\w\-]+$)/,x=/^\.([\w\-]+)$/,y=/^([\w\-]+)$/,z=/^([\w]+)?\.([\w\-]+)$/,A=b.documentElement,B=/\s(?![\s\w\-\/\?\&\=\:\.\(\)\!,@#%<>\{\}\$\*\^'"]*\])/,C=/([.*+?\^=!:${}()|\[\]\/\\])/g,D=/^([a-z0-9]+)?(?:([\.\#]+[\w\-\.#]+)?)/,E=/\[([\w\-]+)(?:([\|\^\$\*\~]?\=)['"]?([ \w\-\/\?\&\=\:\.\(\)\!,@#%<>\{\}\$\*\^]+)["']?)?\]/,F=new RegExp(D.source+"("+E.source+")?"),H=function(){this.c={}};H.prototype={g:function(a){return this.c[a]||undefined},s:function(a,b){this.c[a]=b;return b}};var I=new H,J=new H,K=new H,L=new H,W="compareDocumentPosition"in A?function(a,b){return(b.compareDocumentPosition(a)&16)==16}:"contains"in A?function(a,c){c=c==b||c==window?A:c;return c!==a&&c.contains(a)}:function(a,b){while(a=a.parentNode)if(a===b)return 1;return 0},X=b.querySelector&&b.querySelectorAll?function(a,c){if(b.getElementsByClassName&&(h=a.match(x)))return G(c.getElementsByClassName(h[1]));return G(c.querySelectorAll(a))}:function(a,c){var d=[],f,i=[],j;if(h=a.match(z)){s=c.getElementsByTagName(h[1]||"*"),k=I.g(h[2])||I.s(h[2],new RegExp("(^|\\s+)"+h[2]+"(\\s+|$)"));for(j=0,g=s.length,e=0;j<g;j++)k.test(s[j].className)&&(d[e++]=s[j]);return d}for(j=0,s=a.split(","),g=s.length;j<g;j++)i[j]=R(s[j]);for(j=0,g=i.length;j<g&&(f=i[j]);j++){var l=f;if(c!==b){l=[];for(e=0,h=f.length;e<h&&(element=f[e]);e++)W(element,c)&&l.push(element)}d=d.concat(l)}return U(d)};V.uniq=U;var Y=a.qwery;V.noConflict=function(){a.qwery=Y;return this},a.qwery=V}(this,document),!function(a){function c(b,c){var d=(c||a).createElement("div"),e=[];d.innerHTML=b;var f=d.childNodes;d=d.firstChild,e.push(d);while(d=d.nextSibling)d.nodeType==1&&e.push(d);return e}var b=qwery.noConflict();$._select=function(a,d){return/^\s*</.test(a)?c(a,d):b(a,d)},$.ender({find:function(a){var c=[],d,e,f,g,h;for(d=0,e=this.length;d<e;d++){h=b(a,this[d]);for(f=0,g=h.length;f<g;f++)c.push(h[f])}return $(b.uniq(c))},and:function(a){var b=$(a);for(var c=this.length,d=0,e=this.length+b.length;c<e;c++,d++)this[c]=b[d];return this}},!0)}(document)
9 1
\ No newline at end of file
10 2
deleted file mode 100644
... ...
@@ -1,1529 +0,0 @@
1
-// Developed by Robert Nyman/DOMAssistant team, code/licensing: http://domassistant.googlecode.com/, documentation: http://www.domassistant.com/documentation, version 2.8
2
-var DOMAssistant = function () {
3
-	var HTMLArray = function () {
4
-		// Constructor
5
-	},
6
-	w = window, _$ = w.$, _$$ = w.$$,
7
-	isIE = /*@cc_on!@*/false,
8
-	isIE5 = isIE && parseFloat(navigator.appVersion) < 6,
9
-	sort, tagCache = {}, lastCache = {}, useCache = true,
10
-	slice = Array.prototype.slice,
11
-	camel = {
12
-		"accesskey": "accessKey",
13
-		"class": "className",
14
-		"colspan": "colSpan",
15
-		"for": "htmlFor",
16
-		"maxlength": "maxLength",
17
-		"readonly": "readOnly",
18
-		"rowspan": "rowSpan",
19
-		"tabindex": "tabIndex",
20
-		"valign": "vAlign",
21
-		"cellspacing": "cellSpacing",
22
-		"cellpadding": "cellPadding"
23
-	},
24
-	regex = {
25
-		rules: /\s*,\s*/g,
26
-		selector: /^(\w+|\*)?(#[\w\u00C0-\uFFFF\-=$]+)?((\.[\w\u00C0-\uFFFF\-]+)*)?((\[\w+\s*([~^$*|])?(=\s*([-\w\u00C0-\uFFFF\s.]+|"[^"]*"|'[^']*'))?\]+)*)?((:\w[-\w]*(\((odd|even|\-?\d*n?([-+]\d+)?|[:#]?[-\w\u00C0-\uFFFF.]+|"[^"]*"|'[^']*'|((\w*\.[-\w\u00C0-\uFFFF]+)*)?|(\[#?\w+([~^$*|])?=?[-\w\u00C0-\uFFFF\s.'"]+\]+)|(:\w[-\w]*\(.+\)))\))?)*)?([+>~])?/,
27
-		selectorSplit: /(?:\[.*\]|\(.*\)|[^\s+>~[(])+|[+>~]/g,
28
-		id: /^#([-\w\u00C0-\uFFFF=$]+)$/,
29
-		tag: /^\w+/,
30
-		relation: /^[+>~]$/,
31
-		pseudo: /^:(\w[-\w]*)(\((.+)\))?$/,
32
-		pseudos: /:(\w[-\w]*)(\((([^(]+)|([^(]+\([^(]+)\))\))?/g,
33
-		attribs: /\[(\w+)\s*([~^$*|])?(=)?\s*([^\[\]]*|"[^"]*"|'[^']*')?\](?=$|\[|:|\s)/g,
34
-		classes: /\.([-\w\u00C0-\uFFFF]+)/g,
35
-		quoted: /^["'](.*)["']$/,
36
-		nth: /^((odd|even)|([1-9]\d*)|((([1-9]\d*)?)n([-+]\d+)?)|(-(([1-9]\d*)?)n\+(\d+)))$/,
37
-		special: /(:check|:enabl|\bselect)ed\b/
38
-	},
39
-	navigate = function (node, direction, checkTagName) {
40
-		var oldName = node.tagName;
41
-		while ((node = node[direction + "Sibling"]) && (node.nodeType !== 1 || (checkTagName? node.tagName !== oldName : node.tagName === "!"))) {}
42
-		return node;
43
-	},
44
-	def = function (obj) {
45
-		return typeof obj !== "undefined";
46
-	},
47
-	sortDocumentOrder = function (elmArray) {
48
-		return (sortDocumentOrder = elmArray[0].compareDocumentPosition? function (elmArray) { return elmArray.sort( function (a, b) { return 3 - (a.compareDocumentPosition(b) & 6); } ); } :
49
-			isIE? function (elmArray) { return elmArray.sort( function (a, b) { return a.sourceIndex - b.sourceIndex; } ); } :
50
-			function (elmArray) { return elmArray.sort( function (a, b) {
51
-				var range1 = document.createRange(), range2 = document.createRange();
52
-				range1.setStart(a, 0);
53
-				range1.setEnd(a, 0);
54
-				range2.setStart(b, 0);
55
-				range2.setEnd(b, 0);
56
-				return range1.compareBoundaryPoints(Range.START_TO_END, range2);
57
-			} ); })(elmArray);
58
-	};
59
-	var pushAll = function (set1, set2) {
60
-		set1.push.apply(set1, slice.apply(set2));
61
-		return set1;
62
-	};
63
-	if (isIE) {
64
-		pushAll = function (set1, set2) {
65
-			if (set2.slice) {
66
-				return set1.concat(set2);
67
-			}
68
-			var i=0, item;
69
-			while ((item = set2[i++])) {
70
-				set1[set1.length] = item;
71
-			}
72
-			return set1;
73
-		};
74
-	}
75
-	return {
76
-		isIE : isIE,
77
-		camel : camel,
78
-		def : def,
79
-		allMethods : [],
80
-		publicMethods : [
81
-			"prev",
82
-			"next",
83
-			"hasChild",
84
-			"cssSelect",
85
-			"elmsByClass",
86
-			"elmsByAttribute",
87
-			"elmsByTag"
88
-		],
89
-		
90
-		harmonize : function () {
91
-			w.$ = _$;
92
-			w.$$ = _$$;
93
-			return this;
94
-		},
95
-		
96
-		initCore : function () {
97
-			this.applyMethod.call(w, "$", this.$);
98
-			this.applyMethod.call(w, "$$", this.$$);
99
-			w.DOMAssistant = this;
100
-			if (isIE) {
101
-				HTMLArray = Array;
102
-			}
103
-			HTMLArray.prototype = [];
104
-			(function (H) {
105
-				H.each = function (fn, context) {
106
-					for (var i=0, il=this.length; i<il; i++) {
107
-						if (fn.call(context || this[i], this[i], i, this) === false) {
108
-							break;
109
-						}
110
-					}
111
-					return this;
112
-				};
113
-				H.first = function () {
114
-					return def(this[0])? DOMAssistant.addMethodsToElm(this[0]) : null;
115
-				};
116
-				H.end = function () {
117
-					return this.previousSet;
118
-				};
119
-				H.indexOf = H.indexOf || function (elm) {
120
-					for (var i=0, il=this.length; i<il; i++) {
121
-						if (i in this && this[i] === elm) {
122
-							return i;
123
-						}
124
-					}
125
-					return -1;
126
-				};
127
-				H.map = function (fn, context) {
128
-					var res = [];
129
-					for (var i=0, il=this.length; i<il; i++) {
130
-						if (i in this) {
131
-							res[i] = fn.call(context || this[i], this[i], i, this);
132
-						}
133
-					}
134
-					return res;
135
-				};
136
-				H.filter = function (fn, context) {
137
-					var res = new HTMLArray();
138
-					res.previousSet = this;
139
-					for (var i=0, il=this.length; i<il; i++) {
140
-						if (i in this && fn.call(context || this[i], this[i], i, this)) {
141
-							res.push(this[i]);
142
-						}
143
-					}
144
-					return res;
145
-				};
146
-				H.every = function (fn, context) {
147
-					for (var i=0, il=this.length; i<il; i++) {
148
-						if (i in this && !fn.call(context || this[i], this[i], i, this)) {
149
-							return false;
150
-						}
151
-					}
152
-					return true;
153
-				};
154
-				H.some = function (fn, context) {
155
-					for (var i=0, il=this.length; i<il; i++) {
156
-						if (i in this && fn.call(context || this[i], this[i], i, this)) {
157
-							return true;
158
-						}
159
-					}
160
-					return false;
161
-				};
162
-			})(HTMLArray.prototype);
163
-			this.attach(this);
164
-		},
165
-		
166
-		addMethods : function (name, method) {
167
-			if (!def(this.allMethods[name])) {
168
-				this.allMethods[name] = method;
169
-				this.addHTMLArrayPrototype(name, method);
170
-			}
171
-		},
172
-		
173
-		addMethodsToElm : function (elm) {
174
-			for (var method in this.allMethods) {
175
-				if (def(this.allMethods[method])) {
176
-					this.applyMethod.call(elm, method, this.allMethods[method]);
177
-				}
178
-			}
179
-			return elm;
180
-		},
181
-		
182
-		applyMethod : function (method, func) {
183
-			if (typeof this[method] !== "function") {
184
-				this[method] = func;
185
-			}
186
-		},
187
-		
188
-		attach : function (plugin) {
189
-			var publicMethods = plugin.publicMethods;
190
-			if (!def(publicMethods)) {
191
-				for (var method in plugin) {
192
-					if (method !== "init" && def(plugin[method])) {
193
-						this.addMethods(method, plugin[method]);
194
-					}
195
-				}
196
-			}
197
-			else if (publicMethods.constructor === Array) {
198
-				for (var i=0, current; (current=publicMethods[i]); i++) {
199
-					this.addMethods(current, plugin[current]);
200
-				}
201
-			}
202
-			if (typeof plugin.init === "function") {
203
-				plugin.init();
204
-			}
205
-		},
206
-		
207
-		addHTMLArrayPrototype : function (name, method) {
208
-			HTMLArray.prototype[name] = function () {
209
-				var elmsToReturn = new HTMLArray();
210
-				elmsToReturn.previousSet = this;
211
-				for (var i=0, il=this.length; i<il; i++) {
212
-					elmsToReturn.push(method.apply(DOMAssistant.$$(this[i]), arguments));
213
-				}
214
-				return elmsToReturn;
215
-			};
216
-		},
217
-		
218
-		cleanUp : function (elm) {
219
-			var children = elm.all || elm.getElementsByTagName("*");
220
-			for (var i=0, child; (child=children[i++]);) {
221
-				if (child.hasData && child.hasData()) {
222
-					if (child.removeEvent) { child.removeEvent(); }
223
-					child.unstore();
224
-				}
225
-			}
226
-			elm.innerHTML = "";
227
-		},
228
-		
229
-		setCache : function (cache) {
230
-			useCache = cache;
231
-		},
232
-		
233
-		$ : function () {
234
-			var obj = arguments[0];
235
-			if (arguments.length === 1 && (typeof obj === "object" || (typeof obj === "function" && !!obj.nodeName))) {
236
-				return DOMAssistant.$$(obj);
237
-			}
238
-			var elm = !!obj? new HTMLArray() : null;
239
-			for (var i=0, arg, idMatch; (arg=arguments[i]); i++) {
240
-				if (typeof arg === "string") {
241
-					arg = arg.replace(/^[^#\(]*(#)/, "$1");
242
-					if (regex.id.test(arg)) {
243
-						if ((idMatch = DOMAssistant.$$(arg.substr(1), false))) {
244
-							elm.push(idMatch);
245
-						}
246
-					}
247
-					else {
248
-						var doc = (document.all || document.getElementsByTagName("*")).length;
249
-						elm = (!document.querySelectorAll && useCache && lastCache.rule && lastCache.rule === arg && lastCache.doc === doc)? lastCache.elms : pushAll(elm, DOMAssistant.cssSelection.call(document, arg));
250
-						lastCache = { rule: arg, elms: elm, doc: doc };
251
-					}
252
-				}
253
-			}
254
-			return elm;
255
-		},
256
-		
257
-		$$ : function (id, addMethods) {
258
-			var elm = (typeof id === "object" || typeof id === "function" && !!id.nodeName)? id : document.getElementById(id),
259
-				applyMethods = def(addMethods)? addMethods : true,
260
-				getId = function(el) { var eid = el.id; return typeof eid !== "object"? eid : el.attributes.id.nodeValue; };
261
-			if (typeof id === "string" && elm && getId(elm) !== id) {
262
-				elm = null;
263
-				for (var i=0, item; (item=document.all[i]); i++) {
264
-					if (getId(item) === id) {
265
-						elm = item;
266
-						break;
267
-					}
268
-				}
269
-			}
270
-			if (elm && applyMethods && !elm.next) {
271
-				DOMAssistant.addMethodsToElm(elm);
272
-			}
273
-			return elm;
274
-		},
275
-		
276
-		prev : function () {
277
-			return DOMAssistant.$$(navigate(this, "previous"));
278
-		},
279
-
280
-		next : function () {
281
-			return DOMAssistant.$$(navigate(this, "next"));
282
-		},
283
-		
284
-		hasChild: function (elm) {
285
-			return this === document || this !== elm && (this.contains? this.contains(elm) : !!(this.compareDocumentPosition(elm) & 16));
286
-		},
287
-
288
-		getSequence : function (expression) {
289
-			var start, add = 2, max = -1, modVal = -1,
290
-				pseudoVal = regex.nth.exec(expression.replace(/^0n\+/, "").replace(/^2n$/, "even").replace(/^2n+1$/, "odd"));
291
-			if (!pseudoVal) {
292
-				return null;
293
-			}
294
-			if (pseudoVal[2]) {	// odd or even
295
-				start = (pseudoVal[2] === "odd")? 1 : 2;
296
-				modVal = (start === 1)? 1 : 0;
297
-			}
298
-			else if (pseudoVal[3]) {	// single digit
299
-				start = max = parseInt(pseudoVal[3], 10);
300
-				add = 0;
301
-			}
302
-			else if (pseudoVal[4]) {	// an+b
303
-				add = pseudoVal[6]? parseInt(pseudoVal[6], 10) : 1;
304
-				start = pseudoVal[7]? parseInt(pseudoVal[7], 10) : 0;
305
-				while (start < 1) {
306
-					start += add;
307
-				}
308
-				modVal = (start >= add)? (start - add) % add : start;
309
-			}
310
-			else if (pseudoVal[8]) {	// -an+b
311
-				add = pseudoVal[10]? parseInt(pseudoVal[10], 10) : 1;
312
-				start = max = parseInt(pseudoVal[11], 10);
313
-				while (start > add) {
314
-					start -= add;
315
-				}
316
-				modVal = (max >= add)? (max - add) % add : max;
317
-			}
318
-			return { start: start, add: add, max: max, modVal: modVal };
319
-		},
320
-		
321
-		cssByDOM : function (cssRule) {
322
-			var prevParents, currentRule, cssSelectors, childOrSiblingRef, nextTag, nextRegExp, current, previous, prevParent, notElm, addElm, iteratorNext, childElm, sequence, anyTag,
323
-				elm = new HTMLArray(), index = elm.indexOf, prevElm = [], matchingElms = [], cssRules = cssRule.replace(regex.rules, ",").split(","), splitRule = {};
324
-			function clearAdded (elm) {
325
-				elm = elm || prevElm;
326
-				for (var n=elm.length; n--;) {
327
-					elm[n].added = null;
328
-					elm[n].removeAttribute("added");
329
-				}
330
-			}
331
-			function clearChildElms () {
332
-				for (var n=prevParents.length; n--;) {
333
-					prevParents[n].childElms = null;
334
-				}
335
-			}
336
-			function subtractArray (arr1, arr2) {
337
-				for (var i=0, src1; (src1=arr1[i]); i++) {
338
-					var found = false;
339
-					for (var j=0, src2; (src2=arr2[j]); j++) {
340
-						if (src2 === src1) {
341
-							found = true;
342
-							arr2.splice(j, 1);
343
-							break;
344
-						}
345
-					}
346
-					if (found) {
347
-						arr1.splice(i--, 1);
348
-					}
349
-				}
350
-				return arr1;
351
-			}
352
-			function getAttr (elm, attr) {
353
-				return (isIE || regex.special.test(attr))? elm[camel[attr.toLowerCase()] || attr] : elm.getAttribute(attr, 2);
354
-			}
355
-			function attrToRegExp (attrVal, substrOperator) {
356
-				attrVal = attrVal? attrVal.replace(regex.quoted, "$1").replace(/(\.|\[|\])/g, "\\$1") : null;
357
-				return {
358
-					"^": "^" + attrVal,
359
-					"$": attrVal + "$",
360
-					"*": attrVal,
361
-					"|": "^" + attrVal + "(\\-\\w+)*$",
362
-					"~": "\\b" + attrVal + "\\b"
363
-				}[substrOperator] || (attrVal !== null? "^" + attrVal + "$" : attrVal);
364
-			}
365
-			function notComment(el) {
366
-				return (el || this).tagName !== "!";
367
-			}
368
-			function getTags (tag, context) {
369
-				return isIE5? (tag === "*"? context.all : context.all.tags(tag)) : context.getElementsByTagName(tag);
370
-			}
371
-			function getElementsByTagName (tag, parent) {
372
-				tag = tag || "*";
373
-				parent = parent || document;
374
-				return (parent === document || parent.lastModified)? tagCache[tag] || (tagCache[tag] = getTags(tag, document)) : getTags(tag, parent);
375
-			}
376
-			function getElementsByPseudo (previousMatch, pseudoClass, pseudoValue) {
377
-				prevParents = [];
378
-				var pseudo = pseudoClass.split("-"), matchingElms = [], idx = 0, checkNodeName = /\-of\-type$/.test(pseudoClass), recur,
379
-				match = {
380
-					first: function(el) { return !navigate(el, "previous", checkNodeName); },
381
-					last: function(el) { return !navigate(el, "next", checkNodeName); },
382
-					empty: function(el) { return !el.firstChild; },
383
-					enabled: function(el) { return !el.disabled && el.type !== "hidden"; },
384
-					disabled: function(el) { return el.disabled; },
385
-					checked: function(el) { return el.checked; },
386
-					contains: function(el) { return (el.innerText || el.textContent || "").indexOf(pseudoValue.replace(regex.quoted, "$1")) > -1; },
387
-					other: function(el) { return getAttr(el, pseudoClass) === pseudoValue; }
388
-				};
389
-				function basicMatch(key) {
390
-					while ((previous=previousMatch[idx++])) {
391
-						if (notComment(previous) && match[key](previous)) {
392
-							matchingElms[matchingElms.length] = previous;
393
-						}
394
-					}
395
-					return matchingElms;
396
-				}
397
-				var word = pseudo[0] || null;
398
-				if (word && match[word]) {
399
-					return basicMatch(word);
400
-				}
401
-				switch (word) {
402
-					case "only":
403
-						var kParent, kTag;
404
-						while ((previous=previousMatch[idx++])) {
405
-							prevParent = previous.parentNode;
406
-							var q = previous.nodeName;
407
-							if (prevParent !== kParent || q !== kTag) {
408
-								if (match.first(previous) && match.last(previous)) {
409
-									matchingElms[matchingElms.length] = previous;
410
-								}
411
-								kParent = prevParent;
412
-								kTag = q;
413
-							}
414
-						}
415
-						break;
416
-					case "nth":
417
-						if (pseudoValue === "n") {
418
-							matchingElms = previousMatch;
419
-						}
420
-						else {
421
-							var direction = (pseudo[1] === "last")? ["lastChild", "previousSibling"] : ["firstChild", "nextSibling"];
422
-							sequence = DOMAssistant.getSequence(pseudoValue);
423
-							if (sequence) {
424
-								while ((previous=previousMatch[idx++])) {
425
-									prevParent = previous.parentNode;
426
-									prevParent.childElms = prevParent.childElms || {};
427
-									var p = previous.nodeName;
428
-									if (!prevParent.childElms[p]) {
429
-										var childCount = 0;
430
-										iteratorNext = sequence.start;
431
-										childElm = prevParent[direction[0]];
432
-										while (childElm && (sequence.max < 0 || iteratorNext <= sequence.max)) {
433
-											var c = childElm.nodeName;
434
-											if ((checkNodeName && c === p) || (!checkNodeName && childElm.nodeType === 1 && c !== "!")) {
435
-												if (++childCount === iteratorNext) {
436
-													if (c === p) { matchingElms[matchingElms.length] = childElm; }
437
-													iteratorNext += sequence.add;
438
-												}
439
-											}
440
-											childElm = childElm[direction[1]];
441
-										}
442
-										if (anyTag) { sort++; }
443
-										prevParent.childElms[p] = true;
444
-										prevParents[prevParents.length] = prevParent;
445
-									}
446
-								}
447
-								clearChildElms();
448
-							}
449
-						}
450
-						break;
451
-					case "target":
452
-						var hash = document.location.hash.slice(1);
453
-						if (hash) {
454
-							while ((previous=previousMatch[idx++])) {
455
-								if (getAttr(previous, "name") === hash || getAttr(previous, "id") === hash) {
456
-									matchingElms[matchingElms.length] = previous;
457
-									break;
458
-								}
459
-							}
460
-						}
461
-						break;
462
-					case "not":
463
-						if ((recur = regex.pseudo.exec(pseudoValue))) {
464
-							matchingElms = subtractArray(previousMatch, getElementsByPseudo(previousMatch, recur[1]? recur[1].toLowerCase() : null, recur[3] || null));
465
-						}
466
-						else {
467
-							for (var re in regex) {
468
-								if (regex[re].lastIndex) {
469
-									regex[re].lastIndex = 0;
470
-								}
471
-							}
472
-							pseudoValue = pseudoValue.replace(regex.id, "[id=$1]");
473
-							var notTag = regex.tag.exec(pseudoValue);
474
-							var notClass = regex.classes.exec(pseudoValue);
475
-							var notAttr = regex.attribs.exec(pseudoValue);
476
-							var notRegExp = new RegExp(notAttr? attrToRegExp(notAttr[4], notAttr[2]) : "(^|\\s)" + (notTag? notTag[0] : notClass? notClass[1] : "") + "(\\s|$)", "i");
477
-							while ((notElm=previousMatch[idx++])) {
478
-								addElm = null;
479
-								if (notTag && !notRegExp.test(notElm.nodeName) || notClass && !notRegExp.test(notElm.className)) {
480
-									addElm = notElm;
481
-								}
482
-								else if (notAttr) {
483
-									var att = getAttr(notElm, notAttr[1]);
484
-									if (!def(att) || att === false || typeof att === "string" && !notRegExp.test(att)) {
485
-										addElm = notElm;
486
-									}
487
-								}
488
-								if (addElm && !addElm.added) {
489
-									addElm.added = true;
490
-									matchingElms[matchingElms.length] = addElm;
491
-								}
492
-							}
493
-						}
494
-						break;
495
-					default: return basicMatch("other");
496
-				}
497
-				return matchingElms;
498
-			}
499
-			function pushUnique(set1, set2) {
500
-				var i=0, s=set1, item;
501
-				while ((item = set2[i++])) {
502
-					if (!s.length || s.indexOf(item) < 0) {
503
-						set1.push(item);
504
-					}
505
-				}
506
-				return set1;
507
-			}
508
-			sort = -1;
509
-			for (var a=0, tagBin=[]; (currentRule=cssRules[a]); a++) {
510
-				if (!(cssSelectors = currentRule.match(regex.selectorSplit)) || a && index.call(cssRules.slice(0, a), currentRule) > -1) { continue; }
511
-				prevElm = [this];
512
-				for (var i=0, rule; (rule=cssSelectors[i]); i++) {
513
-					matchingElms = [];
514
-					if ((childOrSiblingRef = regex.relation.exec(rule))) {
515
-						var idElm = null, nextWord = cssSelectors[i+1];
516
-						if ((nextTag = regex.tag.exec(nextWord))) {
517
-							nextTag = nextTag[0];
518
-							nextRegExp = new RegExp("(^|\\s)" + nextTag + "(\\s|$)", "i");
519
-						}
520
-						else if (regex.id.test(nextWord)) {
521
-							idElm = DOMAssistant.$(nextWord) || null;
522
-						}
523
-						for (var j=0, prevRef; (prevRef=prevElm[j]); j++) {
524
-							switch (childOrSiblingRef[0]) {
525
-								case ">":
526
-									var children = idElm || getElementsByTagName(nextTag, prevRef);
527
-									for (var k=0, child; (child=children[k]); k++) {
528
-										if (child.parentNode === prevRef) {
529
-											matchingElms[matchingElms.length] = child;
530
-										}
531
-									}
532
-									break;
533
-								case "+":
534
-									if ((prevRef = navigate(prevRef, "next"))) {
535
-										if ((idElm && idElm[0] === prevRef) || (!idElm && (!nextTag || nextRegExp.test(prevRef.nodeName)))) {
536
-											matchingElms[matchingElms.length] = prevRef;
537
-										}
538
-									}
539
-									break;
540
-								case "~":
541
-									while ((prevRef = prevRef.nextSibling) && !prevRef.added) {
542
-										if ((idElm && idElm[0] === prevRef) || (!idElm && (!nextTag || nextRegExp.test(prevRef.nodeName)))) {
543
-											prevRef.added = true;
544
-											matchingElms[matchingElms.length] = prevRef;
545
-										}
546
-									}
547
-									break;
548
-							}
549
-						}
550
-						prevElm = matchingElms;
551
-						clearAdded();
552
-						rule = cssSelectors[++i];
553
-						if (/^\w+$/.test(rule) || regex.id.test(rule)) {
554
-							continue;
555
-						}
556
-						prevElm.skipTag = true;
557
-					}
558
-					var cssSelector = regex.selector.exec(rule);
559
-					splitRule = {
560
-						tag : cssSelector[1]? cssSelector[1] : "*",
561
-						id : cssSelector[2],
562
-						allClasses : cssSelector[3],
563
-						allAttr : cssSelector[5],
564
-						allPseudos : cssSelector[10]
565
-					};
566
-					anyTag = (splitRule.tag === "*");
567
-					if (splitRule.id) {
568
-						var u = 0, DOMElm = document.getElementById(splitRule.id.slice(1));
569
-						if (DOMElm) {
570
-							while (prevElm[u] && !DOMAssistant.hasChild.call(prevElm[u], DOMElm)) { u++; }
571
-							matchingElms = (u < prevElm.length && (anyTag || splitRule.tag === DOMElm.tagName.toLowerCase()))? [DOMElm] : [];
572
-						}
573
-						prevElm = matchingElms;
574
-					}
575
-					else if (splitRule.tag && !prevElm.skipTag) {
576
-						if (i===0 && !matchingElms.length && prevElm.length === 1) {
577
-							prevElm = matchingElms = pushAll([], getElementsByTagName(splitRule.tag, prevElm[0]));
578
-						}
579
-						else {
580
-							for (var l=0, ll=prevElm.length, tagCollectionMatches, tagMatch; l<ll; l++) {
581
-								tagCollectionMatches = getElementsByTagName(splitRule.tag, prevElm[l]);
582
-								for (var m=0; (tagMatch=tagCollectionMatches[m]); m++) {
583
-									if (!tagMatch.added) {
584
-										tagMatch.added = true;
585
-										matchingElms[matchingElms.length] = tagMatch;
586
-									}
587
-								}
588
-							}
589
-							prevElm = matchingElms;
590
-							clearAdded();
591
-						}
592
-					}
593
-					if (!matchingElms.length) {
594
-						break;
595
-					}
596
-					prevElm.skipTag = false;
597
-					if (splitRule.allClasses) {
598
-						var n = 0, matchingClassElms = [], allClasses = splitRule.allClasses.split(".").slice(1);
599
-						while ((current = prevElm[n++])) {
600
-							var matchCls = true, elmClass = current.className;
601
-							if (elmClass && elmClass.length) {
602
-								elmClass = elmClass.split(" ");
603
-								for (var o=allClasses.length; o--;) {
604
-									if (elmClass.indexOf(allClasses[o]) < 0) {
605
-										matchCls = false;
606
-										break;
607
-									}
608
-								}
609
-								if (matchCls) {
610
-									matchingClassElms[matchingClassElms.length] = current;
611
-								}
612
-							}
613
-						}
614
-						prevElm = matchingElms = matchingClassElms;
615
-					}
616
-					if (splitRule.allAttr) {
617
-						var matchAttr, r = 0, regExpAttributes = [], matchingAttributeElms = [], allAttr = splitRule.allAttr.match(regex.attribs);
618
-						for (var specialStrip = /^\[(selected|readonly)(\s*=.+)?\]$/, q=0, ql=allAttr.length, attributeMatch, attrVal; q<ql; q++) {
619
-							regex.attribs.lastIndex = 0;
620
-							attributeMatch = regex.attribs.exec(allAttr[q].replace(specialStrip, "[$1]"));
621
-							attrVal = attrToRegExp(attributeMatch[4], attributeMatch[2] || null);
622
-							regExpAttributes[q] = [(attrVal? new RegExp(attrVal) : null), attributeMatch[1]];
623
-						}
624
-						while ((current = matchingElms[r++])) {
625
-							for (var s=0, sl=regExpAttributes.length; s<sl; s++) {
626
-								var attributeRegExp = regExpAttributes[s][0], currentAttr = getAttr(current, regExpAttributes[s][1]);
627
-								matchAttr = true;
628
-								if (!attributeRegExp && currentAttr === true) { continue; }
629
-								if ((!attributeRegExp && (!currentAttr || typeof currentAttr !== "string" || !currentAttr.length)) || (!!attributeRegExp && !attributeRegExp.test(currentAttr))) {
630
-									matchAttr = false;
631
-									break;
632
-								}
633
-							}
634
-							if (matchAttr) {
635
-								matchingAttributeElms[matchingAttributeElms.length] = current;
636
-							}
637
-						}
638
-						prevElm = matchingElms = matchingAttributeElms;
639
-					}
640
-					if (splitRule.allPseudos) {
641
-						var allPseudos = splitRule.allPseudos.match(regex.pseudos);
642
-						for (var t=0, tl=allPseudos.length; t<tl; t++) {
643
-							regex.pseudos.lastIndex = 0;
644
-							var pseudo = regex.pseudos.exec(allPseudos[t]);
645
-							var pseudoClass = pseudo[1]? pseudo[1].toLowerCase() : null;
646
-							var pseudoValue = pseudo[3] || null;
647
-							matchingElms = getElementsByPseudo(matchingElms, pseudoClass, pseudoValue);
648
-							clearAdded(matchingElms);
649
-						}
650
-						prevElm = matchingElms;
651
-					}
652
-				}
653
-				elm = ((tagBin.length && (anyTag || index.call(tagBin, splitRule.tag) >= 0 || index.call(tagBin, "*") >= 0))? pushUnique : pushAll)(elm, prevElm);
654
-				tagBin.push(splitRule.tag);
655
-				if (isIE && anyTag) { elm = elm.filter(notComment); }
656
-			}
657
-			return ((elm.length > 1 && cssRules.length > 1) || sort > 0)? sortDocumentOrder(elm) : elm;
658
-		},
659
-		
660
-		cssByXpath : function (cssRule) {
661
-			var ns = { xhtml: "http://www.w3.org/1999/xhtml" },
662
-				prefix = (document.documentElement.namespaceURI === ns.xhtml)? "xhtml:" : "",
663
-				nsResolver = function lookupNamespaceURI (prefix) {
664
-					return ns[prefix] || null;
665
-				};
666
-			DOMAssistant.cssByXpath = function (cssRule) {
667
-				var currentRule, cssSelectors, xPathExpression, cssSelector, splitRule, sequence,
668
-					elm = new HTMLArray(), cssRules = cssRule.replace(regex.rules, ",").split(",");
669
-				function attrToXPath (wrap) {
670
-					var pre = wrap? "[" : "", post = wrap? "]" : "";
671
-					return function (match, p1, p2, p3, p4) {
672
-						p4 = (p4 || "").replace(regex.quoted, "$1");
673
-						if (p1 === p4 && p1 === "readonly") { p3 = null; }
674
-						return pre + ({
675
-							"^": "starts-with(@" + p1 + ", \"" + p4 + "\")",
676
-							"$": "substring(@" + p1 + ", (string-length(@" + p1 + ") - " + (p4.length - 1) + "), " + p4.length + ") = \"" + p4 + "\"",
677
-							"*": "contains(concat(\" \", @" + p1 + ", \" \"), \"" + p4 + "\")",
678
-							"|": "@" + p1 + "=\"" + p4 + "\" or starts-with(@" + p1 + ", \"" + p4 + "-\")",
679
-							"~": "contains(concat(\" \", @" + p1 + ", \" \"), \" " + p4 + " \")"
680
-						}[p2] || ("@" + p1 + (p3? "=\"" + p4 + "\"" : ""))) + post;
681
-					};
682
-				}
683
-				function pseudoToXPath (tag, pseudoClass, pseudoValue) {
684
-					tag = /\-child$/.test(pseudoClass)? "*" : tag;
685
-					var pseudo = pseudoClass.split("-"), position = ((pseudo[1] === "last")? "(count(following-sibling::" : "(count(preceding-sibling::") + tag + ") + 1)", recur, hash;
686
-					switch (pseudo[0]) {
687
-						case "nth": return (pseudoValue !== "n" && (sequence = DOMAssistant.getSequence(pseudoValue)))? ((sequence.start === sequence.max)? position + " = " + sequence.start : position + " mod " + sequence.add + " = " + sequence.modVal + ((sequence.start > 1)? " and " + position + " >= " + sequence.start : "") + ((sequence.max > 0)? " and " + position + " <= " + sequence.max: "")) : "";
688
-						case "not": return "not(" + ((recur = regex.pseudo.exec(pseudoValue))? pseudoToXPath(tag, recur[1]? recur[1].toLowerCase() : null, recur[3] || null) : pseudoValue.replace(regex.id, "[id=$1]").replace(regex.tag, "self::$0").replace(regex.classes, "contains(concat(\" \", @class, \" \"), \" $1 \")").replace(regex.attribs, attrToXPath())) + ")";
689
-						case "first": return "not(preceding-sibling::" + tag + ")";
690
-						case "last": return "not(following-sibling::" + tag + ")";
691
-						case "only": return "not(preceding-sibling::" + tag + " or following-sibling::" + tag + ")";
692
-						case "empty": return "not(child::*) and not(text())";
693
-						case "contains": return "contains(., \"" + pseudoValue.replace(regex.quoted, "$1") + "\")";
694
-						case "enabled": return "not(@disabled) and not(@type=\"hidden\")";
695
-						case "disabled": return "@disabled";
696
-						case "target": return "@name=\"" + (hash = document.location.hash.slice(1)) + "\" or @id=\"" + hash + "\"";
697
-						default: return "@" + pseudoClass + "=\"" + pseudoValue + "\"";
698
-					}
699
-				}
700
-				for (var i=0; (currentRule=cssRules[i]); i++) {
701
-					if (!(cssSelectors = currentRule.match(regex.selectorSplit)) || i && elm.indexOf.call(cssRules.slice(0, i), currentRule) > -1) { continue; }
702
-					xPathExpression = xPathExpression? xPathExpression + " | ." : ".";
703
-					for (var j=0, jl=cssSelectors.length; j<jl; j++) {
704
-						cssSelector = regex.selector.exec(cssSelectors[j]);
705
-						splitRule = {
706
-							tag: prefix + (cssSelector[1]? cssSelector[1] : "*"),
707
-							id: cssSelector[2],
708
-							allClasses: cssSelector[3],
709
-							allAttr: cssSelector[5],
710
-							allPseudos: cssSelector[10],
711
-							tagRelation: cssSelector[20]
712
-						};
713
-						xPathExpression +=
714
-							(splitRule.tagRelation? ({ ">": "/", "+": "/following-sibling::*[1]/self::", "~": "/following-sibling::" }[splitRule.tagRelation] || "") : ((j > 0 && regex.relation.test(cssSelectors[j-1]))? splitRule.tag : ("//" + splitRule.tag))) +
715
-							(splitRule.id || "").replace(regex.id, "[@id = \"$1\"]") +
716
-							(splitRule.allClasses || "").replace(regex.classes, "[contains(concat(\" \", @class, \" \"), \" $1 \")]") +
717
-							(splitRule.allAttr || "").replace(regex.attribs, attrToXPath(true));
718
-						if (splitRule.allPseudos) {
719
-							var allPseudos = splitRule.allPseudos.match(regex.pseudos);
720
-							for (var k=0, kl=allPseudos.length; k<kl; k++) {
721
-								regex.pseudos.lastIndex = 0;
722
-								var pseudo = regex.pseudos.exec(allPseudos[k]),
723
-									pseudoClass = pseudo[1]? pseudo[1].toLowerCase() : null,
724
-									pseudoValue = pseudo[3] || null,
725
-									xpath = pseudoToXPath(splitRule.tag, pseudoClass, pseudoValue);
726
-								if (xpath.length) {
727
-									xPathExpression += "[" + xpath + "]";
728
-								}
729
-							}
730
-						}
731
-					}
732
-				}
733
-				try {
734
-					var xPathNodes = document.evaluate(xPathExpression, this, nsResolver, 7, null), node, p=0;
735
-					while ((node = xPathNodes.snapshotItem(p++))) { elm.push(node); }
736
-				} catch (e) {}
737
-				return elm;
738
-			};
739
-			return DOMAssistant.cssByXpath.call(this, cssRule);
740
-		},
741
-		
742
-		cssSelection : function (cssRule) {
743
-			if (!cssRule) { return null; }
744
-			var special = regex.special.test(cssRule);
745
-			try {
746
-				if (document.querySelectorAll && !special) {
747
-					return pushAll(new HTMLArray(), this.querySelectorAll(cssRule));
748
-				}
749
-			} catch (e) {}
750
-			return ((document.evaluate && !special && !/-of-type/.test(cssRule))? DOMAssistant.cssByXpath : DOMAssistant.cssByDOM).call(this, cssRule);
751
-		},
752
-		
753
-		cssSelect : function (cssRule) {
754
-			return DOMAssistant.cssSelection.call(this, cssRule);
755
-		},
756
-		
757
-		elmsByClass : function (className, tag) {
758
-			var cssRule = (tag || "") + "." + className;
759
-			return DOMAssistant.cssSelection.call(this, cssRule);
760
-		},
761
-		
762
-		elmsByAttribute : function (attr, attrVal, tag, substrMatchSelector) {
763
-			var cssRule = (tag || "") + "[" + attr + ((attrVal && attrVal !== "*")? ((substrMatchSelector || "") + "=" + attrVal + "]") : "]");
764
-			return DOMAssistant.cssSelection.call(this, cssRule);
765
-		},
766
-		
767
-		elmsByTag : function (tag) {
768
-			return DOMAssistant.cssSelection.call(this, tag);
769
-		}
770
-	};
771
-}();
772
-DOMAssistant.initCore();
773
-DOMAssistant.Storage = function () {
774
-	var uniqueId = 1, data = [], expando = "_da" + +new Date();
775
-	return {
776
-		hasData : function () {
777
-			var uid = this[expando];
778
-			return !!uid && !!data[uid];
779
-		},
780
-		retrieve : function (key) {
781
-			if (!DOMAssistant.def(key)) {
782
-				return this[expando] || (this[expando] = uniqueId++);
783
-			}
784
-			if (!this[expando] || !data[this[expando]]) { return; }
785
-			return data[this[expando]][key];
786
-		},
787
-		
788
-		store : function (key, val) {
789
-			var uid = this[expando] || (this[expando] = uniqueId++);
790
-			data[uid] = data[uid] || {};
791
-			if (typeof key === "object") {
792
-				for (var i in key) {
793
-					if (typeof i === "string") {
794
-						data[uid][i] = key[i];
795
-					}
796
-				}
797
-			}
798
-			else {
799
-				data[uid][key] = val;
800
-			}
801
-			return this;
802
-		},
803
-		
804
-		unstore : function (key) {
805
-			var uid = this[expando] || (this[expando] = uniqueId++);
806
-			if (data[uid]) {
807
-				if (DOMAssistant.def(key)) {
808
-					delete data[uid][key];
809
-				}
810
-				else {
811
-					data[uid] = null;
812
-				}
813
-			}
814
-			return this;
815
-		}
816
-	};
817
-}();
818
-DOMAssistant.attach(DOMAssistant.Storage);
819
-DOMAssistant.AJAX = function () {
820
-	var globalXMLHttp = null,
821
-	readyState = 0,
822
-	status = -1,
823
-	statusText = "",
824
-	requestPool = [],
825
-	createAjaxObj = function (url, method, callback, addToContent) {
826
-		var params = null;
827
-		if (/POST/i.test(method)) {
828
-			url = url.split("?");
829
-			params = url[1];
830
-			url = url[0];
831
-		}
832
-		return {
833
-			url : url,
834
-			method : method,
835
-			callback : callback,
836
-			params : params,
837
-			headers : {},
838
-			responseType : "text",
839
-			addToContent : addToContent || false
840
-		};
841
-	};
842
-	return {
843
-		publicMethods : [
844
-			"ajax",
845
-			"get",
846
-			"post",
847
-			"load"
848
-		],
849
-		
850
-		initRequest : function () {
851
-			var XMLHttp = null;
852
-			if (!!window.XMLHttpRequest && !DOMAssistant.isIE) {
853
-				XMLHttp = new XMLHttpRequest();
854
-				DOMAssistant.AJAX.initRequest = function () {
855
-					return requestPool.length? requestPool.pop() : new XMLHttpRequest();
856
-				};
857
-			}
858
-			else if (!!window.ActiveXObject) {
859
-				var XMLHttpMS = ["Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.3.0", "Msxml2.XMLHTTP", "Microsoft.XMLHTTP"];
860
-				for (var i=0; i<XMLHttpMS.length; i++) {
861
-					try {
862
-						XMLHttp = new window.ActiveXObject(XMLHttpMS[i]);
863
-						DOMAssistant.AJAX.initRequest = function () {
864
-							return requestPool.length? requestPool.pop() : new window.ActiveXObject(XMLHttpMS[i]);
865
-						};
866
-						break;
867
-					}
868
-					catch (e) {
869
-						XMLHttp = null;
870
-					}
871
-				}
872
-			}
873
-			return XMLHttp;
874
-		},
875
-		
876
-		ajax : function (ajaxObj) {
877
-			if (!ajaxObj.noParse && ajaxObj.url && /\?/.test(ajaxObj.url) && ajaxObj.method && /POST/i.test(ajaxObj.method)) {
878
-				var url = ajaxObj.url.split("?");
879
-				ajaxObj.url = url[0];
880
-				ajaxObj.params = url[1] + ((url[1].length > 0 && ajaxObj.params)? ("&" + ajaxObj.params) : "");
881
-			}
882
-			return DOMAssistant.AJAX.makeCall.call(this, ajaxObj);
883
-		},
884
-		
885
-		get : function (url, callback, addToContent) {
886
-			return DOMAssistant.AJAX.makeCall.call(this, createAjaxObj(url, "GET", callback, addToContent));
887
-		},
888
-		
889
-		post : function (url, callback) {
890
-			return DOMAssistant.AJAX.makeCall.call(this, createAjaxObj(url, "POST", callback));
891
-		},
892
-		
893
-		load : function (url, addToContent) {
894
-			this.get(url, DOMAssistant.AJAX.replaceWithAJAXContent, addToContent);
895
-		},
896
-		
897
-		makeCall : function (ajaxObj) {
898
-			var XMLHttp = DOMAssistant.AJAX.initRequest();
899
-			if (XMLHttp) {
900
-				globalXMLHttp = XMLHttp;
901
-				(function (elm) {
902
-					var url = ajaxObj.url,
903
-						method = ajaxObj.method || "GET",
904
-						callback = ajaxObj.callback,
905
-						params = ajaxObj.params,
906
-						headers = ajaxObj.headers,
907
-						responseType = ajaxObj.responseType || "text",
908
-						addToContent = ajaxObj.addToContent,
909
-						timeout = ajaxObj.timeout || null,
910
-						ex = ajaxObj.exception,
911
-						timeoutId = null,
912
-						done = false;
913
-					XMLHttp.open(method, url, true);
914
-					XMLHttp.setRequestHeader("AJAX", "true");
915
-					XMLHttp.setRequestHeader("X-Requested-With", "XMLHttpRequest");
916
-					if (method === "POST") {
917
-						XMLHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
918
-						XMLHttp.setRequestHeader("Content-length", params? params.length : 0);
919
-						if (XMLHttp.overrideMimeType) {
920
-							XMLHttp.setRequestHeader("Connection", "close");
921
-						}
922
-					}
923
-					if (responseType === "json") {
924
-						XMLHttp.setRequestHeader("Accept", "application/json, text/javascript, */*");
925
-					}
926
-					for (var i in headers) {
927
-						if (typeof i === "string") {
928
-							XMLHttp.setRequestHeader(i, headers[i]);
929
-						}
930
-					}
931
-					if (typeof callback === "function") {
932
-						XMLHttp.onreadystatechange = function () {
933
-							try {
934
-								if (XMLHttp.readyState === 4 && !done) {
935
-									window.clearTimeout(timeoutId);
936
-									done = true;
937
-									status = XMLHttp.status;
938
-									statusText = XMLHttp.statusText;
939
-									readyState = 4;
940
-									if ((status || location.protocol !== "file:") && (status < 200 || status >= 300)) {
941
-										throw new Error(statusText);
942
-									}
943
-									var response = /xml/i.test(responseType)? XMLHttp.responseXML : XMLHttp.responseText;
944
-									if (/json/i.test(responseType) && !!response) {
945
-										response = (typeof JSON === "object" && typeof JSON.parse === "function")? JSON.parse(response) : eval("(" + response + ")");
946
-									}
947
-									globalXMLHttp = null;
948
-									XMLHttp.onreadystatechange = function () {};
949
-									requestPool.push(XMLHttp);
950
-									callback.call(elm, response, addToContent);
951
-								}
952
-							}
953
-							catch (e) {
954
-								globalXMLHttp = XMLHttp = null;
955
-								if (typeof ex === "function") {
956
-									ex.call(elm, e);
957
-									ex = null;
958
-								}
959
-							}
960
-						};
961
-					}
962
-					XMLHttp.send(params);
963
-					if (timeout) {
964
-						timeoutId = window.setTimeout( function () {
965
-							if (!done) {
966
-								XMLHttp.abort();
967
-								done = true;
968
-								if (typeof ex === "function") {
969
-									readyState = 0;
970
-									status = 408;
971
-									statusText = "Request timeout";
972
-									globalXMLHttp = XMLHttp = null;
973
-									ex.call(elm, new Error(statusText));
974
-									ex = null;
975
-								}
976
-							}
977
-						}, timeout);
978
-					}
979
-				})(this);
980
-			}
981
-			return this;
982
-		},
983
-		
984
-		replaceWithAJAXContent : function (content, add) {
985
-			if (add) {
986
-				this.innerHTML += content;
987
-			}
988
-			else {
989
-				DOMAssistant.cleanUp(this);
990
-				this.innerHTML = content;
991
-			}
992
-		},
993
-		
994
-		getReadyState : function () {
995
-			return (globalXMLHttp && DOMAssistant.def(globalXMLHttp.readyState))? globalXMLHttp.readyState : readyState;
996
-		},
997
-		
998
-		getStatus : function () {
999
-			return status;
1000
-		},
1001
-		
1002
-		getStatusText : function () {
1003
-			return statusText;
1004
-		}
1005
-	};
1006
-}();
1007
-DOMAssistant.attach(DOMAssistant.AJAX);
1008
-DOMAssistant.CSS = function () {
1009
-	var def = DOMAssistant.def,
1010
-		direct = { display: true };
1011
-	return {
1012
-		addClass : function (className) {
1013
-			if (!this.hasClass(className)) {
1014
-				var currentClass = this.className;
1015
-				this.className = currentClass + (currentClass.length? " " : "") + className;
1016
-			}
1017
-			return this;
1018
-		},
1019
-
1020
-		removeClass : function (className) {
1021
-			return this.replaceClass(className);
1022
-		},
1023
-
1024
-		replaceClass : function (className, newClass) {
1025
-			var classToRemove = new RegExp(("(^|\\s)" + className + "(\\s|$)"), "i");
1026
-			this.className = this.className.replace(classToRemove, function (match, p1, p2) {
1027
-				return newClass? (p1 + newClass + p2) : " ";
1028
-			}).replace(/^\s+|\s+$/g, "");
1029
-			return this;
1030
-		},
1031
-
1032
-		hasClass : function (className) {
1033
-			return (" " + this.className + " ").indexOf(" " + className + " ") > -1;
1034
-		},
1035
-
1036
-		setStyle : function (style, value) {
1037
-			var css = this.style;
1038
-			if ("filters" in this && (typeof style === "string"? /opacity/i.test(style) : def(style.opacity))) {
1039
-				css.zoom = 1;
1040
-				css.filter = (css.filter || "").replace(/alpha\([^)]*\)/, "") + "alpha(opacity=" + (def(style.opacity)? style.opacity : value) * 100 + ")";
1041
-			}
1042
-			if (def(css.cssText)) {
1043
-				var styleToSet = css.cssText;
1044
-				if (typeof style === "object") {
1045
-					for (var i in style) {
1046
-						if (typeof i === "string") {
1047
-							if (direct[i]) { css[i] = style[i]; }
1048
-							styleToSet += ";" + i + ":" + style[i];
1049
-						}
1050
-					}
1051
-				}
1052
-				else {
1053
-					if (direct[style]) { css[style] = value; }
1054
-					styleToSet += ";" + style + ":" + value;
1055
-				}
1056
-				css.cssText = styleToSet;
1057
-			}
1058
-			return this;
1059
-		},
1060
-
1061
-		getStyle : function (cssRule) {
1062
-			var val = "", f;
1063
-			cssRule = cssRule.toLowerCase();
1064
-			if (document.defaultView && document.defaultView.getComputedStyle) {
1065
-				val = document.defaultView.getComputedStyle(this, "").getPropertyValue(cssRule);
1066
-			}
1067
-			else if (this.currentStyle) {
1068
-				if ("filters" in this && cssRule === "opacity") {
1069
-					val = (f = this.style.filter || this.currentStyle.filter) && f.indexOf("opacity=") >= 0? parseFloat(f.match(/opacity=([^)]*)/)[1]) / 100 : 1;
1070
-				}
1071
-				else {
1072
-					cssRule = cssRule.replace(/^float$/, "styleFloat").replace(/\-(\w)/g, function (match, p1) {
1073
-						return p1.toUpperCase();
1074
-					});
1075
-					val = this.currentStyle[cssRule];
1076
-				}
1077
-				if (val === "auto" && /^(width|height)$/.test(cssRule) && this.currentStyle.display !== "none") {
1078
-					val = this["offset" + cssRule.charAt(0).toUpperCase() + cssRule.substr(1)] + "px";
1079
-				}
1080
-			}
1081
-			return val;
1082
-		}
1083
-	};
1084
-}();
1085
-DOMAssistant.attach(DOMAssistant.CSS);
1086
-DOMAssistant.Content = function () {
1087
-	var D$ = DOMAssistant.$$;
1088
-	return {
1089
-		init : function () {
1090
-			DOMAssistant.setCache(false);
1091
-		},
1092
-
1093
-		create : function (name, attr, append, content) {
1094
-			var elm = D$(document.createElement(name));
1095
-			if (attr) {
1096
-				elm = elm.setAttributes(attr);
1097
-			}
1098
-			if (DOMAssistant.def(content)) {
1099
-				elm.addContent(content);
1100
-			}
1101
-			if (append) {
1102
-				this.appendChild(elm);
1103
-			}
1104
-			return elm;
1105
-		},
1106
-
1107
-		setAttributes : function (attr) {
1108
-			if (DOMAssistant.isIE) {
1109
-				var setAttr = function (elm, att, val) {
1110
-					var attLower = att.toLowerCase();
1111
-					switch (attLower) {
1112
-						case "name":
1113
-						case "type":
1114
-						case "multiple":
1115
-							return D$(document.createElement(elm.outerHTML.replace(new RegExp(attLower + "(=[a-zA-Z]+)?"), " ").replace(">", " " + attLower + "=" + val + ">")));
1116
-						case "style":
1117
-							elm.style.cssText = val;
1118
-							return elm;
1119
-						default:
1120
-							elm[DOMAssistant.camel[attLower] || att] = val;
1121
-							return elm;
1122
-					}
1123
-				};
1124
-				DOMAssistant.Content.setAttributes = function (attr) {
1125
-					var elem = this;
1126
-					var parent = this.parentNode;
1127
-					for (var i in attr) {
1128
-						if (typeof attr[i] === "string" || typeof attr[i] === "number") {
1129
-							var newElem = setAttr(elem, i, attr[i]);
1130
-							if (parent && /(name|type)/i.test(i)) {
1131
-								if (elem.innerHTML) {
1132
-									newElem.innerHTML = elem.innerHTML;
1133
-								}
1134
-								parent.replaceChild(newElem, elem);
1135
-							}
1136
-							elem = newElem;
1137
-						}
1138
-					}
1139
-					return elem;
1140
-				};
1141
-			}
1142
-			else {
1143
-				DOMAssistant.Content.setAttributes = function (attr) {
1144
-					for (var i in attr) {
1145
-						if (/class/i.test(i)) {
1146
-							this.className = attr[i];
1147
-						}
1148
-						else {
1149
-							this.setAttribute(i, attr[i]);
1150
-						}
1151
-					}
1152
-					return this;
1153
-				};
1154
-			}
1155
-			return DOMAssistant.Content.setAttributes.call(this, attr); 
1156
-		},
1157
-
1158
-		addContent : function (content) {
1159
-			var type = typeof content;
1160
-			if (type === "string" || type === "number") {
1161
-				if (!this.firstChild) {
1162
-					this.innerHTML = content;
1163
-				}
1164
-				else {
1165
-					var tmp = document.createElement("div");
1166
-					tmp.innerHTML = content;
1167
-					for (var i=tmp.childNodes.length-1, last=null; i>=0; i--) {
1168
-						last = this.insertBefore(tmp.childNodes[i], last);
1169
-					}
1170
-				}
1171
-			}
1172
-			else if (type === "object" || (type === "function" && !!content.nodeName)) {
1173
-				this.appendChild(content);
1174
-			}
1175
-			return this;
1176
-		},
1177
-
1178
-		replaceContent : function (content) {
1179
-			DOMAssistant.cleanUp(this);
1180
-			return this.addContent(content);
1181
-		},
1182
-
1183
-		replace : function (content, returnNew) {
1184
-			var type = typeof content;
1185
-			if (type === "string" || type === "number") {
1186
-				var parent = this.parentNode;
1187
-				var tmp = DOMAssistant.Content.create.call(parent, "div", null, false, content);
1188
-				for (var i=tmp.childNodes.length; i--;) {
1189
-					parent.insertBefore(tmp.childNodes[i], this.nextSibling);
1190
-				}
1191
-				content = this.nextSibling;
1192
-				parent.removeChild(this);
1193
-			}
1194
-			else if (type === "object" || (type === "function" && !!content.nodeName)) {
1195
-				this.parentNode.replaceChild(content, this);
1196
-			}
1197
-			return returnNew? content : this;
1198
-		},
1199
-
1200
-		remove : function () {
1201
-			DOMAssistant.cleanUp(this);
1202
-			if (this.hasData()) {
1203
-				if (this.removeEvent) { this.removeEvent(); }
1204
-				this.unstore();
1205
-			}
1206
-			this.parentNode.removeChild(this);
1207
-			return null;
1208
-		}
1209
-	};
1210
-}();
1211
-DOMAssistant.attach(DOMAssistant.Content);
1212
-DOMAssistant.Events = function () {
1213
-	var handler,
1214
-		key = "_events",
1215
-		w3cMode = !!document.addEventListener,
1216
-		useCapture = { focus: true, blur: true },
1217
-		translate = DOMAssistant.isIE? { focus: "activate", blur: "deactivate", mouseenter: "mouseover", mouseleave: "mouseout" } : { mouseenter: "mouseover", mouseleave: "mouseout" },
1218
-		regex = {
1219
-			special: /^submit|reset|change|select$/i,
1220
-			mouseenterleave: /^mouse(enter|leave)$/i,
1221
-			dom: /^DOM/,
1222
-			on: /^on/i
1223
-		},
1224
-		special = function (e) {
1225
-			return DOMAssistant.isIE && regex.special.test(e);
1226
-		},
1227
-		fix = function (e) {
1228
-			return translate[e] || e;
1229
-		},
1230
-		createEvent = function (e, type, target) {
1231
-			e = e || window.event || {};
1232
-			if (e.event) { return e; }
1233
-			var event = {
1234
-				event: e,
1235
-				type: type || e.type,
1236
-				bubbles: e.bubbles || true,
1237
-				cancelable: e.cancelable || false,
1238
-				target: target || e.target || e.srcElement,
1239
-				clientX: e.clientX || 0,
1240
-				clientY: e.clientY || 0,
1241
-				altKey: e.altKey || false,
1242
-				ctrlKey: e.ctrlKey || false,
1243
-				shiftKey: e.shiftKey || false,
1244
-				button: e.button || null,
1245
-				timeStamp: +new Date(),
1246
-				preventDefault: function() {
1247
-					if (e.preventDefault) { e.preventDefault(); }
1248
-					this.returnValue = e.returnValue = false;
1249
-				},
1250
-				stopPropagation: function() {
1251
-					if (e.stopPropagation) { e.stopPropagation(); }
1252
-					this.cancelBubble = e.cancelBubble = true;
1253
-				}
1254
-			};
1255
-			if (event.target && 3 === event.target.nodeType) { // Safari textnode bug
1256
-				event.target = event.target.parentNode;	
1257
-			}
1258
-			event.currentTarget = event.target;
1259
-			event.relatedTarget = e.relatedTarget || (e.fromElement === event.target? e.toElement : e.fromElement) || null;
1260
-			var de = document.documentElement, b = document.body;
1261
-			event.pageX = DOMAssistant.def(e.pageX)? e.pageX : (event.clientX + (de.scrollLeft || b.scrollLeft) - (de.clientLeft || 0));
1262
-			event.pageY = DOMAssistant.def(e.pageY)? e.pageY : (event.clientY + (de.scrollTop || b.scrollTop) - (de.clientTop || 0));
1263
-			if ("number" === typeof e.which) {
1264
-				event.keyCode = e.keyCode;
1265
-				event.charCode = event.which = e.which;
1266
-			}
1267
-			else if (e.keyCode) {
1268
-				event.keyCode = event.charCode = e.keyCode;
1269
-			}
1270
-			return event;
1271
-		};
1272
-
1273
-	return {
1274
-		publicMethods : [
1275
-			"triggerEvent",
1276
-			"addEvent",
1277
-			"removeEvent",
1278
-			"relayEvent",
1279
-			"unrelayEvent",
1280
-			"preventDefault",
1281
-			"cancelBubble"
1282
-		],
1283
-
1284
-		init : function () {
1285
-			DOMAssistant.preventDefault = this.preventDefault;
1286
-			DOMAssistant.cancelBubble = this.cancelBubble;
1287
-			handler = this.handleEvent;
1288
-		},
1289
-
1290
-		triggerEvent : function (evt, target, e) {
1291
-			var fevt = fix(evt),
1292
-				events = this.retrieve(key),
1293
-				event = e || createEvent(e, fevt, target || this);
1294
-			event.currentTarget = this;
1295
-			if (events && events[fevt]) {
1296
-				for (var i=0, iL=events[fevt].length; i<iL; i++) {
1297
-					if (events[fevt][i].call(this, event) === false) { event.stopPropagation(); }
1298
-				}
1299
-			}
1300
-			else if (typeof this["on" + fevt] === "function") {
1301
-				this["on" + fevt].call(this, event);
1302
-			}
1303
-			var p = DOMAssistant.$$(this.parentNode);
1304
-			if (!event.cancelBubble && p && p.nodeType === 1) {
1305
-				p.triggerEvent(fevt, target, event);
1306
-			}
1307
-			return this;
1308
-		},
1309
-
1310
-		addEvent : function (evt, func, relay, proxy, selector) {
1311
-			var existingEvent,
1312
-				fevt = fix(evt),
1313
-				uid = fevt + this.retrieve(),
1314
-				onevt = "on" + fevt;
1315
-			if (!(func.attachedElements && func.attachedElements[uid])) {
1316
-				var events = this.retrieve(key) || {};
1317
-				if (!events[fevt]) {
1318
-					events[fevt] = [];
1319
-					existingEvent = this[onevt];
1320
-					this[onevt] = null;
1321
-				}
1322
-				if (typeof this.window === "object") { this.window[onevt] = handler; }
1323
-				else if (!events[fevt].length) {
1324
-					if (w3cMode) { this.addEventListener(fevt, handler, useCapture[fevt]); }
1325
-					else { this[onevt] = handler; }
1326
-				}
1327
-				if (existingEvent) {
1328
-					events[fevt].push(existingEvent);
1329
-				}
1330
-				if (fevt !== evt) { func.evt = evt; }
1331
-				func.relay = relay;
1332
-				func.proxy = proxy;
1333
-				func.selector = selector;
1334
-				func.attachedElements = func.attachedElements || {};
1335
-				func.attachedElements[uid] = true;
1336
-				events[fevt].push(func);
1337
-				this.store(key, events);
1338
-			}
1339
-			return this;
1340
-		},
1341
-
1342
-		handleEvent : function (evt) {
1343
-			var currentEvt = (evt && regex.dom.test(evt.type) && w3cMode)? evt : createEvent(evt),
1344
-				type = fix(currentEvt.type),
1345
-				targ = currentEvt.target,
1346
-				relatedTarg = currentEvt.relatedTarget,
1347
-				eventColl = this.retrieve(key)[type].slice(0), eventCollLength, eventReturn, oevt;
1348
-			if ((eventCollLength = eventColl.length)) {
1349
-				for (var i=0; i<eventCollLength; i++) {
1350
-					if (typeof eventColl[i] === "function") {
1351
-						if ((oevt = eventColl[i].evt) && oevt !== type) {
1352
-							currentEvt.type = oevt;
1353
-							if (relatedTarg && regex.mouseenterleave.test(oevt)) {
1354
-								if (eventColl[i].relay) {
1355
-									var elms = eventColl[i].elms || (eventColl[i].elms = this.cssSelect(eventColl[i].selector));
1356
-									if (elms.indexOf(targ) < 0 || !DOMAssistant.hasChild.call(relatedTarg, targ)) { continue; }
1357
-								}
1358
-								else if (this === relatedTarg || this.hasChild(relatedTarg)) { continue; }
1359
-							}
1360
-						}
1361
-						eventReturn = eventColl[i].call(this, currentEvt);
1362
-					}
1363
-				}
1364
-				if (eventReturn === false) { currentEvt.stopPropagation(); }
1365
-				return eventReturn;
1366
-			}
1367
-		},
1368
-
1369
-		removeEvent : function (evt, func, relay, proxy) {
1370
-			var uid = (evt = fix(evt)) + this.retrieve(),
1371
-				events = this.retrieve(key),
1372
-				onevt = "on" + evt;
1373
-			if (events && !evt) {
1374
-				for (var ev in events) {
1375
-					if (events[ev].length) { this.removeEvent(ev); }
1376
-				}
1377
-				var attr = this.attributes;
1378
-				for (var att, j=attr.length; j--;) {
1379
-					att = attr[j].nodeName.toLowerCase();
1380
-					if (regex.on.test(att) && typeof this[att] === "function") {
1381
-						this[att] = null;
1382
-					}
1383
-				}
1384
-			}
1385
-			else if (events && events[evt]) {
1386
-				var eventColl = events[evt];
1387
-				for (var fn, i=eventColl.length; i--;) {
1388
-					fn = func || eventColl[i];
1389
-					if (eventColl[i] === fn && relay === fn.relay && proxy === fn.proxy) {
1390
-						eventColl.splice(i, 1);
1391
-						if (!!proxy && fn.selector) {
1392
-							this.cssSelect(fn.selector).removeEvent(proxy);
1393
-						}
1394
-						if (fn.attachedElements) {
1395
-							fn.attachedElements[uid] = null;
1396
-						}
1397
-					}
1398
-				}
1399
-				if (!events[evt].length) {
1400
-					if (w3cMode) { this.removeEventListener(evt, handler, useCapture[evt]); }
1401
-					else { this[onevt] = null; }
1402
-				}
1403
-			}
1404
-			else if (this[onevt] && !func && !relay) {
1405
-				this[onevt] = null;
1406
-			}
1407
-			return this;
1408
-		},
1409
-
1410
-		relayEvent: function (evt, selector, fn, proxy) {
1411
-			if (special(evt)) {
1412
-				this.relayEvent("focus", selector, function() {
1413
-					DOMAssistant.$$(this).removeEvent(evt).addEvent(evt, function(e) {
1414
-						return fn.call(this, createEvent(e));
1415
-					});
1416
-				}, evt).relayEvent("blur", selector, function() {
1417
-					DOMAssistant.$$(this).removeEvent(evt);
1418
-				}, evt);
1419
-				return this;
1420
-			}
1421
-			return this.addEvent(evt, function(e) {
1422
-				e = createEvent(e);
1423
-				var target = e.target, args = arguments, i = 0, elm, elms = this.cssSelect(selector);
1424
-				while ((elm = elms[i++])) {
1425
-					if ((elm === target || DOMAssistant.hasChild.call(elm, target)) && !elm.disabled) {
1426
-						e.currentTarget = elm;
1427
-						var retVal = fn.apply(elm, args);
1428
-						if (!retVal) { e.preventDefault(); }
1429
-						return retVal;
1430
-					}
1431
-				}
1432
-			}, true, proxy, selector);
1433
-		},
1434
-
1435
-		unrelayEvent: function (evt) {
1436
-			if (special(evt)) {
1437
-				return this.removeEvent("focus", null, true, evt).removeEvent("blur", null, true, evt);
1438
-			}
1439
-			return this.removeEvent(evt, null, true);
1440
-		},
1441
-
1442
-		preventDefault : function (evt) {
1443
-			if (evt.preventDefault) { evt.preventDefault(); }
1444
-			evt.returnValue = false;
1445
-		},
1446
-
1447
-		cancelBubble : function (evt) {
1448
-			if (evt.stopPropagation) { evt.stopPropagation(); }
1449
-			evt.cancelBubble = true;
1450
-		}
1451
-	};
1452
-}();
1453
-DOMAssistant.attach(DOMAssistant.Events);
1454
-DOMAssistant.DOMLoad = function () {
1455
-	var DOMLoaded = false,
1456
-	DOMLoadTimer = null,
1457
-	functionsToCall = [],
1458
-	addedStrings = {},
1459
-	errorHandling = null,
1460
-	execFunctions = function () {
1461
-		for (var i=0, il=functionsToCall.length; i<il; i++) {
1462
-			try {
1463
-				functionsToCall[i]();
1464
-			}
1465
-			catch (e) {
1466
-				if (errorHandling && typeof errorHandling === "function") {
1467
-					errorHandling(e);
1468
-				}
1469
-			}
1470
-		}
1471
-		functionsToCall = [];
1472
-	},
1473
-	DOMHasLoaded = function () {
1474
-		if (DOMLoaded) {
1475
-			return;
1476
-		}
1477
-		DOMLoaded = true;
1478
-		execFunctions();
1479
-	};
1480
-	/* Internet Explorer */
1481
-	/*@cc_on
1482
-	@if (@_win32 || @_win64)
1483
-		document.write("<script id=\"ieScriptLoad\" defer src=\"//:\"><\/script>");
1484
-		document.getElementById("ieScriptLoad").onreadystatechange = function() {
1485
-			if (this.readyState === "complete") {
1486
-				DOMHasLoaded();
1487
-			}
1488
-		};
1489
-	@end @*/
1490
-	/* Mozilla, Chrome, Opera */
1491
-	if (document.addEventListener) {
1492
-		document.addEventListener("DOMContentLoaded", DOMHasLoaded, false);
1493
-	}
1494
-	/* Safari, iCab, Konqueror */
1495
-	if (/KHTML|WebKit|iCab/i.test(navigator.userAgent)) {
1496
-		DOMLoadTimer = setInterval(function () {
1497
-			if (/loaded|complete/i.test(document.readyState)) {
1498
-				DOMHasLoaded();
1499
-				clearInterval(DOMLoadTimer);
1500
-			}
1501
-		}, 10);
1502
-	}
1503
-	/* Other web browsers */
1504
-	window.onload = DOMHasLoaded;
1505
-	
1506
-	return {
1507
-		DOMReady : function () {
1508
-			for (var i=0, il=arguments.length, funcRef; i<il; i++) {
1509
-				funcRef = arguments[i];
1510
-				if (!funcRef.DOMReady && !addedStrings[funcRef]) {
1511
-					if (typeof funcRef === "string") {
1512
-						addedStrings[funcRef] = true;
1513
-						funcRef = new Function(funcRef);
1514
-					}
1515
-					funcRef.DOMReady = true;
1516
-					functionsToCall.push(funcRef);
1517
-				}
1518
-			}
1519
-			if (DOMLoaded) {
1520
-				execFunctions();
1521
-			}
1522
-		},
1523
-		
1524
-		setErrorHandling : function (funcRef) {
1525
-			errorHandling = funcRef;
1526
-		}
1527
-	};
1528
-}();
1529
-DOMAssistant.DOMReady = DOMAssistant.DOMLoad.DOMReady;
1530 1
\ No newline at end of file
1531 2
deleted file mode 100644
... ...
@@ -1,292 +0,0 @@
1
-/*
2
- * respond.js - A small and fast polyfill for min/max-width CSS3 Media Queries
3
- * Copyright 2011, Scott Jehl, scottjehl.com
4
- * Dual licensed under the MIT or GPL Version 2 licenses.
5
- * Usage: Check out the readme file or github.com/scottjehl/respond
6
-*/
7
-(function( win, mqSupported ){
8
-	//exposed namespace
9
-	win.respond		= {};
10
-
11
-	//define update even in native-mq-supporting browsers, to avoid errors
12
-	respond.update	= function(){};
13
-
14
-	//expose media query support flag for external use
15
-	respond.mediaQueriesSupported	= mqSupported;
16
-
17
-	//if media queries are supported, exit here
18
-	if( mqSupported ){ return; }
19
-
20
-	//define vars
21
-	var doc 			= win.document,
22
-		docElem 		= doc.documentElement,
23
-		mediastyles		= [],
24
-		rules			= [],
25
-		appendedEls 	= [],
26
-		parsedSheets 	= {},
27
-		resizeThrottle	= 30,
28
-		head 			= doc.getElementsByTagName( "head" )[0] || docElem,
29
-		links			= head.getElementsByTagName( "link" ),
30
-		requestQueue	= [],
31
-
32
-		//loop stylesheets, send text content to translate
33
-		ripCSS			= function(){
34
-			var sheets 	= links,
35
-				sl 		= sheets.length,
36
-				i		= 0,
37
-				//vars for loop:
38
-				sheet, href, media, isCSS;
39
-
40
-			for( ; i < sl; i++ ){
41
-				sheet	= sheets[ i ],
42
-				href	= sheet.href,
43
-				media	= sheet.media,
44
-				isCSS	= sheet.rel && sheet.rel.toLowerCase() === "stylesheet";
45
-
46
-				//only links plz and prevent re-parsing
47
-				if( !!href && isCSS && !parsedSheets[ href ] ){
48
-					if( !/^([a-zA-Z]+?:(\/\/)?(www\.)?)/.test( href )
49
-						|| href.replace( RegExp.$1, "" ).split( "/" )[0] === win.location.host ){
50
-						requestQueue.push( {
51
-							href: href,
52
-							media: media
53
-						} );
54
-					}
55
-					else{
56
-						parsedSheets[ href ] = true;
57
-					}
58
-				}
59
-			}
60
-			makeRequests();
61
-
62
-		},
63
-
64
-		//recurse through request queue, get css text
65
-		makeRequests	= function(){
66
-			if( requestQueue.length ){
67
-				var thisRequest = requestQueue.shift();
68
-
69
-				ajax( thisRequest.href, function( styles ){
70
-					translate( styles, thisRequest.href, thisRequest.media );
71
-					parsedSheets[ thisRequest.href ] = true;
72
-					makeRequests();
73
-				} );
74
-			}
75
-		},
76
-
77
-		//find media blocks in css text, convert to style blocks
78
-		translate			= function( styles, href, media ){
79
-			var qs			= styles.match( /@media ([^\{]+)\{((?!@media)[\s\S])*(?=\}[\s]*\/\*\/mediaquery\*\/)/gmi ),
80
-				ql			= qs && qs.length || 0,
81
-				//try to get CSS path
82
-				href		= href.substring( 0, href.lastIndexOf( "/" )),
83
-				repUrls		= function( css ){
84
-					return css.replace( /(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g, "$1" + href + "$2$3" );
85
-				},
86
-				useMedia	= !ql && media,
87
-				//vars used in loop
88
-				i			= 0,
89
-				j, fullq, thisq, eachq, eql;
90
-
91
-			//if path exists, tack on trailing slash
92
-			if( href.length ){ href += "/"; }
93
-
94
-			//if no internal queries exist, but media attr does, use that
95
-			//note: this currently lacks support for situations where a media attr is specified on a link AND
96
-				//its associated stylesheet has internal CSS media queries.
97
-				//In those cases, the media attribute will currently be ignored.
98
-			if( useMedia ){
99
-				ql = 1;
100
-			}
101
-
102
-
103
-			for( ; i < ql; i++ ){
104
-				j	= 0;
105
-
106
-				//media attr
107
-				if( useMedia ){
108
-					fullq = media;
109
-					rules.push( repUrls( styles ) );
110
-				}
111
-				//parse for styles
112
-				else{
113
-					fullq	= qs[ i ].match( /@media ([^\{]+)\{([\S\s]+?)$/ ) && RegExp.$1;
114
-					rules.push( RegExp.$2 && repUrls( RegExp.$2 ) );
115
-				}
116
-
117
-				eachq	= fullq.split( "," );
118
-				eql		= eachq.length;
119
-
120
-
121
-				for( ; j < eql; j++ ){
122
-					thisq	= eachq[ j ];
123
-					mediastyles.push( {
124
-						media	: thisq.match( /(only\s+)?([a-zA-Z]+)(\sand)?/ ) && RegExp.$2,
125
-						rules	: rules.length - 1,
126
-						minw	: thisq.match( /\(min\-width:[\s]*([\s]*[0-9]+)px[\s]*\)/ ) && parseFloat( RegExp.$1 ),
127
-						maxw	: thisq.match( /\(max\-width:[\s]*([\s]*[0-9]+)px[\s]*\)/ ) && parseFloat( RegExp.$1 )
128
-					} );
129
-				}
130
-			}
131
-
132
-			applyMedia();
133
-		},
134
-
135
-		lastCall,
136
-
137
-		resizeDefer,
138
-
139
-		//enable/disable styles
140
-		applyMedia			= function( fromResize ){
141
-			var name		= "clientWidth",
142
-				docElemProp	= docElem[ name ],
143
-				currWidth 	= doc.compatMode === "CSS1Compat" && docElemProp || doc.body[ name ] || docElemProp,
144
-				styleBlocks	= {},
145
-				dFrag		= doc.createDocumentFragment(),
146
-				lastLink	= links[ links.length-1 ],
147
-				now 		= (new Date()).getTime();
148
-
149
-			//throttle resize calls
150
-			if( fromResize && lastCall && now - lastCall < resizeThrottle ){
151
-				clearTimeout( resizeDefer );
152
-				resizeDefer = setTimeout( applyMedia, resizeThrottle );
153
-				return;
154
-			}
155
-			else {
156
-				lastCall	= now;
157
-			}
158
-
159
-			for( var i in mediastyles ){
160
-				var thisstyle = mediastyles[ i ];
161
-				if( !thisstyle.minw && !thisstyle.maxw ||
162
-					( !thisstyle.minw || thisstyle.minw && currWidth >= thisstyle.minw ) &&
163
-					(!thisstyle.maxw || thisstyle.maxw && currWidth <= thisstyle.maxw ) ){
164
-						if( !styleBlocks[ thisstyle.media ] ){
165
-							styleBlocks[ thisstyle.media ] = [];
166
-						}
167
-						styleBlocks[ thisstyle.media ].push( rules[ thisstyle.rules ] );
168
-				}
169
-			}
170
-
171
-			//remove any existing respond style element(s)
172
-			for( var i in appendedEls ){
173
-				if( appendedEls[ i ] && appendedEls[ i ].parentNode === head ){
174
-					head.removeChild( appendedEls[ i ] );
175
-				}
176
-			}
177
-
178
-			//inject active styles, grouped by media type
179
-			for( var i in styleBlocks ){
180
-				var ss		= doc.createElement( "style" ),
181
-					css		= styleBlocks[ i ].join( "\n" );
182
-
183
-				ss.type = "text/css";
184
-				ss.media	= i;
185
-
186
-				if ( ss.styleSheet ){
187
-		        	ss.styleSheet.cssText = css;
188
-		        }
189
-		        else {
190
-					ss.appendChild( doc.createTextNode( css ) );
191
-		        }
192
-		        dFrag.appendChild( ss );
193
-				appendedEls.push( ss );
194
-			}
195
-
196
-			//append to DOM at once
197
-			head.insertBefore( dFrag, lastLink.nextSibling );
198
-		},
199
-		//tweaked Ajax functions from Quirksmode
200
-		ajax = function( url, callback ) {
201
-			var req = xmlHttp();
202
-			if (!req){
203
-				return;
204
-			}
205
-			req.open( "GET", url, true );
206
-			req.onreadystatechange = function () {
207
-				if ( req.readyState != 4 || req.status != 200 && req.status != 304 ){
208
-					return;
209
-				}
210
-				callback( req.responseText );
211
-			}
212
-			if ( req.readyState == 4 ){
213
-				return;
214
-			}
215
-			req.send();
216
-		},
217
-		//define ajax obj
218
-		xmlHttp = (function() {
219
-			var xmlhttpmethod = false,
220
-				attempts = [
221
-					function(){ return new ActiveXObject("Microsoft.XMLHTTP") },
222
-					function(){ return new XMLHttpRequest() }
223
-				],
224
-				al = attempts.length;
225
-
226
-			while( al-- ){
227
-				try {
228
-					xmlhttpmethod = attempts[ al ]();
229
-				}
230
-				catch(e) {
231
-					continue;
232
-				}
233
-				break;
234
-			}
235
-			return function(){
236
-				return xmlhttpmethod;
237
-			};
238
-		})();
239
-
240
-	//translate CSS
241
-	ripCSS();
242
-
243
-	//expose update for re-running respond later on
244
-	respond.update = ripCSS;
245
-
246
-	//adjust on resize
247
-	function callMedia(){
248
-		applyMedia( true );
249
-	}
250
-	if( win.addEventListener ){
251
-		win.addEventListener( "resize", callMedia, false );
252
-	}
253
-	else if( win.attachEvent ){
254
-		win.attachEvent( "onresize", callMedia );
255
-	}
256
-})(
257
-	this,
258
-	(function( win ){
259
-
260
-		//for speed, flag browsers with window.matchMedia support and IE 9 as supported
261
-		if( win.matchMedia ){ return true; }
262
-
263
-		var bool,
264
-			doc			= document,
265
-			docElem		= doc.documentElement,
266
-			refNode		= docElem.firstElementChild || docElem.firstChild,
267
-			// fakeBody required for <FF4 when executed in <head>
268
-			fakeUsed	= !doc.body,
269
-			fakeBody	= doc.body || doc.createElement( "body" ),
270
-			div			= doc.createElement( "div" ),
271
-			q			= "only all";
272
-
273
-		div.id = "mq-test-1";
274
-		div.style.cssText = "position:absolute;top:-99em";
275
-		fakeBody.appendChild( div );
276
-
277
-		div.innerHTML = '_<style media="'+q+'"> #mq-test-1 { width: 9px; }</style>';
278
-		if( fakeUsed ){
279
-			docElem.insertBefore( fakeBody, refNode );
280
-		}
281
-		div.removeChild( div.firstChild );
282
-		bool = div.offsetWidth == 9;
283
-		if( fakeUsed ){
284
-			docElem.removeChild( fakeBody );
285
-		}
286
-		else{
287
-			fakeBody.removeChild( div );
288
-		}
289
-		return bool;
290
-	})( this )
291
-);
292
-
293 1
deleted file mode 100644
... ...
@@ -1,5 +0,0 @@
1
-/*!
2
- * selectivizr v1.0.1 - (c) Keith Clark, freely distributable under the terms of the MIT license.
3
- * selectivizr.com
4
- */
5
-var k=true,p=false;(function(A){function N(a){return a.replace(O,q).replace(P,function(b,e,c){b=c.split(",");c=0;for(var g=b.length;c<g;c++){var h=Q(b[c].replace(R,q).replace(S,q))+w,f=[];b[c]=h.replace(T,function(d,l,m,j,i){if(l){if(f.length>0){d=f;var x;i=h.substring(0,i).replace(U,o);if(i==o||i.charAt(i.length-1)==w)i+="*";try{x=y(i)}catch(ha){}if(x){i=0;for(m=x.length;i<m;i++){j=x[i];for(var B=j.className,C=0,V=d.length;C<V;C++){var r=d[C];if(!RegExp("(^|\\s)"+r.className+"(\\s|$)").test(j.className))if(r.b&&(r.b===k||r.b(j)===k))B=E(B,r.className,k)}j.className=B}}f=[]}return l}else{if(l=m?W(m):!F||F.test(j)?{className:G(j),b:k}:null){f.push(l);return"."+l.className}return d}})}return e+b.join(",")})}function W(a){var b=k,e=G(a.slice(1)),c=a.substring(0,5)==":not(",g,h;if(c)a=a.slice(5,-1);var f=a.indexOf("(");if(f>-1)a=a.substring(0,f);if(a.charAt(0)==":")switch(a.slice(1)){case "root":b=function(d){return c?d!=H:d==H};break;case "target":if(s==8){b=function(d){function l(){var m=location.hash,j=m.slice(1);return c?m==""||d.id!=j:m!=""&&d.id==j}t(A,"hashchange",function(){u(d,e,l())});return l()};break}return p;case "checked":b=function(d){X.test(d.type)&&t(d,"propertychange",function(){event.propertyName=="checked"&&u(d,e,d.checked!==c)});return d.checked!==c};break;case "disabled":c=!c;case "enabled":b=function(d){if(Y.test(d.tagName)){t(d,"propertychange",function(){event.propertyName=="$disabled"&&u(d,e,d.a===c)});z.push(d);d.a=d.disabled;return d.disabled===c}return a==":enabled"?c:!c};break;case "focus":g="focus";h="blur";case "hover":if(!g){g="mouseenter";h="mouseleave"}b=function(d){t(d,c?h:g,function(){u(d,e,k)});t(d,c?g:h,function(){u(d,e,p)});return c};break;default:if(!Z.test(a))return p}return{className:e,b:b}}function G(a){return I+"-"+(s==6&&$?aa++:a.replace(ba,function(b){return b.charCodeAt(0)}))}function Q(a){return a.replace(J,q).replace(ca,w)}function u(a,b,e){var c=a.className;b=E(c,b,e);if(b!=c){a.className=b;a.parentNode.className+=o}}function E(a,b,e){var c=RegExp("(^|\\s)"+b+"(\\s|$)"),g=c.test(a);return e?g?a:a+w+b:g?a.replace(c,q).replace(J,q):a}function t(a,b,e){a.attachEvent("on"+b,e)}function D(a,b){if(/^https?:\/\//i.test(a))return b.substring(0,b.indexOf("/",8))==a.substring(0,a.indexOf("/",8))?a:null;if(a.charAt(0)=="/")return b.substring(0,b.indexOf("/",8))+a;var e=b.split("?")[0];if(a.charAt(0)!="?"&&e.charAt(e.length-1)!="/")e=e.substring(0,e.lastIndexOf("/")+1);return e+a}function K(a){if(a){v.open("GET",a,p);v.send();return(v.status==200?v.responseText:o).replace(da,o).replace(ea,function(b,e,c,g,h){return K(D(c||h,a))}).replace(fa,function(b,e,c){e=e||"";return" url("+e+D(c,a)+e+") "})}return o}function ga(){var a,b;a=n.getElementsByTagName("BASE");for(var e=a.length>0?a[0].href:n.location.href,c=0;c<n.styleSheets.length;c++){b=n.styleSheets[c];if(b.href!=o)if(a=D(b.href,e))b.cssText=N(K(a))}z.length>0&&setInterval(function(){for(var g=0,h=z.length;g<h;g++){var f=z[g];if(f.disabled!==f.a)if(f.disabled){f.disabled=p;f.a=k;f.disabled=k}else f.a=f.disabled}},250)}if(!/*@cc_on!@*/true){var n=document,H=n.documentElement,v=function(){if(A.XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(a){return null}}(),s=/MSIE ([\d])/.exec(navigator.userAgent)[1];if(!(n.compatMode!="CSS1Compat"||s<6||s>8||!v)){var L={NW:"*.Dom.select",DOMAssistant:"*.$",Prototype:"$$",YAHOO:"*.util.Selector.query",MooTools:"$$",Sizzle:"*",jQuery:"*",dojo:"*.query"},y,z=[],aa=0,$=k,I="slvzr",M=I+"DOMReady",da=/(\/\*[^*]*\*+([^\/][^*]*\*+)*\/)\s*/g,ea=/@import\s*(?:(?:(?:url\(\s*(['"]?)(.*)\1)\s*\))|(?:(['"])(.*)\3))[^;]*;/g,fa=/\burl\(\s*(["']?)([^"')]+)\1\s*\)/g,Z=/^:(empty|(first|last|only|nth(-last)?)-(child|of-type))$/,O=/:(:first-(?:line|letter))/g,P=/(^|})\s*([^\{]*?[\[:][^{]+)/g,T=/([ +~>])|(:[a-z-]+(?:\(.*?\)+)?)|(\[.*?\])/g,U=/(:not\()?:(hover|enabled|disabled|focus|checked|target|active|visited|first-line|first-letter)\)?/g,ba=/[^\w-]/g,Y=/^(INPUT|SELECT|TEXTAREA|BUTTON)$/,X=/^(checkbox|radio)$/,F=s>6?/[\$\^*]=(['"])\1/:null,R=/([(\[+~])\s+/g,S=/\s+([)\]+~])/g,ca=/\s+/g,J=/^\s*((?:[\S\s]*\S)?)\s*$/,o="",w=" ",q="$1";n.write("<script id="+M+" defer src='//:'><\/script>");n.getElementById(M).onreadystatechange=function(){if(this.readyState=="complete"){a:{var a,b;for(b in L)if(A[b]&&(a=eval(L[b].replace("*",b)))){y=a;break a}y=p}if(y){ga();this.parentNode.removeChild(this)}}}}}})(this);
6 1
\ No newline at end of file
7 2
deleted file mode 100644
... ...
@@ -1,20 +0,0 @@
1
-// https://gist.github.com/901295
2
-// By @mathias, @cheeaun and @jdalton
3
-
4
-(function(doc) {
5
-  var addEvent = 'addEventListener',
6
-  type = 'gesturestart',
7
-  qsa = 'querySelectorAll',
8
-  scales = [1, 1],
9
-  meta = qsa in doc ? doc[qsa]('meta[name=viewport]') : [];
10
-  function fix() {
11
-    meta.content = 'width=device-width,minimum-scale=' + scales[0] + ',maximum-scale=' + scales[1];
12
-    doc.removeEventListener(type, fix, true);
13
-  }
14
-  if ((meta = meta[meta.length - 1]) && addEvent in doc) {
15
-    fix();
16
-    scales = [.25, 1.6];
17
-    doc[addEvent](type, fix, true);
18
-  }
19
-}(document));
20
-
21 1
deleted file mode 100644
... ...
@@ -1,85 +0,0 @@
1
-// jXHR.js (JSON-P XHR)
2
-// v0.1 (c) Kyle Simpson
3
-// MIT License
4
-
5
-(function(global){
6
-	var SETTIMEOUT = global.setTimeout, // for better compression
7
-		doc = global.document,
8
-		callback_counter = 0;
9
-
10
-	global.jXHR = function() {
11
-		var script_url,
12
-			script_loaded,
13
-			jsonp_callback,
14
-			scriptElem,
15
-			publicAPI = null;
16
-
17
-		function removeScript() { try { scriptElem.parentNode.removeChild(scriptElem); } catch (err) { } }
18
-
19
-		function reset() {
20
-			script_loaded = false;
21
-			script_url = "";
22
-			removeScript();
23
-			scriptElem = null;
24
-			fireReadyStateChange(0);
25
-		}
26
-
27
-		function ThrowError(msg) {
28
-			try { publicAPI.onerror.call(publicAPI,msg,script_url); } catch (err) { throw new Error(msg); }
29
-		}
30
-
31
-		function handleScriptLoad() {
32
-			if ((this.readyState && this.readyState!=="complete" && this.readyState!=="loaded") || script_loaded) { return; }
33
-			this.onload = this.onreadystatechange = null; // prevent memory leak
34
-			script_loaded = true;
35
-			if (publicAPI.readyState !== 4) ThrowError("Script failed to load ["+script_url+"].");
36
-			removeScript();
37
-		}
38
-
39
-		function fireReadyStateChange(rs,args) {
40
-			args = args || [];
41
-			publicAPI.readyState = rs;
42
-			if (typeof publicAPI.onreadystatechange === "function") publicAPI.onreadystatechange.apply(publicAPI,args);
43
-		}
44
-
45
-		publicAPI = {
46
-			onerror:null,
47
-			onreadystatechange:null,
48
-			readyState:0,
49
-			open:function(method,url){
50
-				reset();
51
-				internal_callback = "cb"+(callback_counter++);
52
-				(function(icb){
53
-					global.jXHR[icb] = function() {
54
-						try { fireReadyStateChange.call(publicAPI,4,arguments); }
55
-						catch(err) {
56
-							publicAPI.readyState = -1;
57
-							ThrowError("Script failed to run ["+script_url+"].");
58
-						}
59
-						global.jXHR[icb] = null;
60
-					};
61
-				})(internal_callback);
62
-				script_url = url.replace(/=\?/,"=jXHR."+internal_callback);
63
-				fireReadyStateChange(1);
64
-			},
65
-			send:function(){
66
-				SETTIMEOUT(function(){
67
-					scriptElem = doc.createElement("script");
68
-					scriptElem.setAttribute("type","text/javascript");
69
-					scriptElem.onload = scriptElem.onreadystatechange = function(){handleScriptLoad.call(scriptElem);};
70
-					scriptElem.setAttribute("src",script_url);
71
-					doc.getElementsByTagName("head")[0].appendChild(scriptElem);
72
-				},0);
73
-				fireReadyStateChange(2);
74
-			},
75
-			setRequestHeader:function(){}, // noop
76
-			getResponseHeader:function(){return "";}, // basically noop
77
-			getAllResponseHeaders:function(){return [];} // ditto
78
-		};
79
-
80
-		reset();
81
-
82
-		return publicAPI;
83
-	};
84
-})(window);
85
-
86 1
deleted file mode 100644
... ...
@@ -1,481 +0,0 @@
1
-/*
2
-    http://www.JSON.org/json2.js
3
-    2011-02-23
4
-
5
-    Public Domain.
6
-
7
-    NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
8
-
9
-    See http://www.JSON.org/js.html
10
-
11
-
12
-    This code should be minified before deployment.
13
-    See http://javascript.crockford.com/jsmin.html
14
-
15
-    USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO
16
-    NOT CONTROL.
17
-
18
-
19
-    This file creates a global JSON object containing two methods: stringify
20
-    and parse.
21
-
22
-        JSON.stringify(value, replacer, space)
23
-            value       any JavaScript value, usually an object or array.
24
-
25
-            replacer    an optional parameter that determines how object
26
-                        values are stringified for objects. It can be a
27
-                        function or an array of strings.
28
-
29
-            space       an optional parameter that specifies the indentation
30
-                        of nested structures. If it is omitted, the text will
31
-                        be packed without extra whitespace. If it is a number,
32
-                        it will specify the number of spaces to indent at each
33
-                        level. If it is a string (such as '\t' or '&nbsp;'),
34
-                        it contains the characters used to indent at each level.
35
-
36
-            This method produces a JSON text from a JavaScript value.
37
-
38
-            When an object value is found, if the object contains a toJSON
39
-            method, its toJSON method will be called and the result will be
40
-            stringified. A toJSON method does not serialize: it returns the
41
-            value represented by the name/value pair that should be serialized,
42
-            or undefined if nothing should be serialized. The toJSON method
43
-            will be passed the key associated with the value, and this will be
44
-            bound to the value
45
-
46
-            For example, this would serialize Dates as ISO strings.
47
-
48
-                Date.prototype.toJSON = function (key) {
49
-                    function f(n) {
50
-                        // Format integers to have at least two digits.
51
-                        return n < 10 ? '0' + n : n;
52
-                    }
53
-
54
-                    return this.getUTCFullYear()   + '-' +
55
-                         f(this.getUTCMonth() + 1) + '-' +
56
-                         f(this.getUTCDate())      + 'T' +
57
-                         f(this.getUTCHours())     + ':' +
58
-                         f(this.getUTCMinutes())   + ':' +
59
-                         f(this.getUTCSeconds())   + 'Z';
60
-                };
61
-
62
-            You can provide an optional replacer method. It will be passed the
63
-            key and value of each member, with this bound to the containing
64
-            object. The value that is returned from your method will be
65
-            serialized. If your method returns undefined, then the member will
66
-            be excluded from the serialization.
67
-
68
-            If the replacer parameter is an array of strings, then it will be
69
-            used to select the members to be serialized. It filters the results
70
-            such that only members with keys listed in the replacer array are
71
-            stringified.
72
-
73
-            Values that do not have JSON representations, such as undefined or
74
-            functions, will not be serialized. Such values in objects will be
75
-            dropped; in arrays they will be replaced with null. You can use
76
-            a replacer function to replace those with JSON values.
77
-            JSON.stringify(undefined) returns undefined.
78
-
79
-            The optional space parameter produces a stringification of the
80
-            value that is filled with line breaks and indentation to make it
81
-            easier to read.
82
-
83
-            If the space parameter is a non-empty string, then that string will
84
-            be used for indentation. If the space parameter is a number, then
85
-            the indentation will be that many spaces.
86
-
87
-            Example:
88
-
89
-            text = JSON.stringify(['e', {pluribus: 'unum'}]);
90
-            // text is '["e",{"pluribus":"unum"}]'
91
-
92
-
93
-            text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t');
94
-            // text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]'
95
-
96
-            text = JSON.stringify([new Date()], function (key, value) {
97
-                return this[key] instanceof Date ?
98
-                    'Date(' + this[key] + ')' : value;
99
-            });
100
-            // text is '["Date(---current time---)"]'
101
-
102
-
103
-        JSON.parse(text, reviver)
104
-            This method parses a JSON text to produce an object or array.
105
-            It can throw a SyntaxError exception.
106
-
107
-            The optional reviver parameter is a function that can filter and
108
-            transform the results. It receives each of the keys and values,
109
-            and its return value is used instead of the original value.
110
-            If it returns what it received, then the structure is not modified.
111
-            If it returns undefined then the member is deleted.
112
-
113
-            Example:
114
-
115
-            // Parse the text. Values that look like ISO date strings will
116
-            // be converted to Date objects.
117
-
118
-            myData = JSON.parse(text, function (key, value) {
119
-                var a;
120
-                if (typeof value === 'string') {
121
-                    a =
122
-/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value);
123
-                    if (a) {
124
-                        return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4],
125
-                            +a[5], +a[6]));
126
-                    }
127
-                }
128
-                return value;
129
-            });
130
-
131
-            myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) {
132
-                var d;
133
-                if (typeof value === 'string' &&
134
-                        value.slice(0, 5) === 'Date(' &&
135
-                        value.slice(-1) === ')') {
136
-                    d = new Date(value.slice(5, -1));
137
-                    if (d) {
138
-                        return d;
139
-                    }
140
-                }
141
-                return value;
142
-            });
143
-
144
-
145
-    This is a reference implementation. You are free to copy, modify, or
146
-    redistribute.
147
-*/
148
-
149
-/*jslint evil: true, strict: false, regexp: false */
150
-
151
-/*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply,
152
-    call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours,
153
-    getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join,
154
-    lastIndex, length, parse, prototype, push, replace, slice, stringify,
155
-    test, toJSON, toString, valueOf
156
-*/
157
-
158
-
159
-// Create a JSON object only if one does not already exist. We create the
160
-// methods in a closure to avoid creating global variables.
161
-
162
-var JSON;
163
-if (!JSON) {
164
-    JSON = {};
165
-}
166
-
167
-(function () {
168
-    "use strict";
169
-
170
-    function f(n) {
171
-        // Format integers to have at least two digits.
172
-        return n < 10 ? '0' + n : n;
173
-    }
174
-
175
-    if (typeof Date.prototype.toJSON !== 'function') {
176
-
177
-        Date.prototype.toJSON = function (key) {
178
-
179
-            return isFinite(this.valueOf()) ?
180
-                this.getUTCFullYear()     + '-' +
181
-                f(this.getUTCMonth() + 1) + '-' +
182
-                f(this.getUTCDate())      + 'T' +
183
-                f(this.getUTCHours())     + ':' +
184
-                f(this.getUTCMinutes())   + ':' +
185
-                f(this.getUTCSeconds())   + 'Z' : null;
186
-        };
187
-
188
-        String.prototype.toJSON      =
189
-            Number.prototype.toJSON  =
190
-            Boolean.prototype.toJSON = function (key) {
191
-                return this.valueOf();
192
-            };
193
-    }
194
-
195
-    var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
196
-        escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
197
-        gap,
198
-        indent,
199
-        meta = {    // table of character substitutions
200
-            '\b': '\\b',
201
-            '\t': '\\t',
202
-            '\n': '\\n',
203
-            '\f': '\\f',
204
-            '\r': '\\r',
205
-            '"' : '\\"',
206
-            '\\': '\\\\'
207
-        },
208
-        rep;
209
-
210
-
211
-    function quote(string) {
212
-
213
-// If the string contains no control characters, no quote characters, and no
214
-// backslash characters, then we can safely slap some quotes around it.
215
-// Otherwise we must also replace the offending characters with safe escape
216
-// sequences.
217
-
218
-        escapable.lastIndex = 0;
219
-        return escapable.test(string) ? '"' + string.replace(escapable, function (a) {
220
-            var c = meta[a];
221
-            return typeof c === 'string' ? c :
222
-                '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
223
-        }) + '"' : '"' + string + '"';
224
-    }
225
-
226
-
227
-    function str(key, holder) {
228
-
229
-// Produce a string from holder[key].
230
-
231
-        var i,          // The loop counter.
232
-            k,          // The member key.
233
-            v,          // The member value.
234
-            length,
235
-            mind = gap,
236
-            partial,
237
-            value = holder[key];
238
-
239
-// If the value has a toJSON method, call it to obtain a replacement value.
240
-
241
-        if (value && typeof value === 'object' &&
242
-                typeof value.toJSON === 'function') {
243
-            value = value.toJSON(key);
244
-        }
245
-
246
-// If we were called with a replacer function, then call the replacer to
247
-// obtain a replacement value.
248
-
249
-        if (typeof rep === 'function') {
250
-            value = rep.call(holder, key, value);
251
-        }
252
-
253
-// What happens next depends on the value's type.
254
-
255
-        switch (typeof value) {
256
-        case 'string':
257
-            return quote(value);
258
-
259
-        case 'number':
260
-
261
-// JSON numbers must be finite. Encode non-finite numbers as null.
262
-
263
-            return isFinite(value) ? String(value) : 'null';
264
-
265
-        case 'boolean':
266
-        case 'null':
267
-
268
-// If the value is a boolean or null, convert it to a string. Note:
269
-// typeof null does not produce 'null'. The case is included here in
270
-// the remote chance that this gets fixed someday.
271
-
272
-            return String(value);
273
-
274
-// If the type is 'object', we might be dealing with an object or an array or
275
-// null.
276
-
277
-        case 'object':
278
-
279
-// Due to a specification blunder in ECMAScript, typeof null is 'object',
280
-// so watch out for that case.
281
-
282
-            if (!value) {
283
-                return 'null';
284
-            }
285
-
286
-// Make an array to hold the partial results of stringifying this object value.
287
-
288
-            gap += indent;
289
-            partial = [];
290
-
291
-// Is the value an array?
292
-
293
-            if (Object.prototype.toString.apply(value) === '[object Array]') {
294
-
295
-// The value is an array. Stringify every element. Use null as a placeholder
296
-// for non-JSON values.
297
-
298
-                length = value.length;
299
-                for (i = 0; i < length; i += 1) {
300
-                    partial[i] = str(i, value) || 'null';
301
-                }
302
-
303
-// Join all of the elements together, separated with commas, and wrap them in
304
-// brackets.
305
-
306
-                v = partial.length === 0 ? '[]' : gap ?
307
-                    '[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']' :
308
-                    '[' + partial.join(',') + ']';
309
-                gap = mind;
310
-                return v;
311
-            }
312
-
313
-// If the replacer is an array, use it to select the members to be stringified.
314
-
315
-            if (rep && typeof rep === 'object') {
316
-                length = rep.length;
317
-                for (i = 0; i < length; i += 1) {
318
-                    if (typeof rep[i] === 'string') {
319
-                        k = rep[i];
320
-                        v = str(k, value);
321
-                        if (v) {
322
-                            partial.push(quote(k) + (gap ? ': ' : ':') + v);
323
-                        }
324
-                    }
325
-                }
326
-            } else {
327
-
328
-// Otherwise, iterate through all of the keys in the object.
329
-
330
-                for (k in value) {
331
-                    if (Object.prototype.hasOwnProperty.call(value, k)) {
332
-                        v = str(k, value);
333
-                        if (v) {
334
-                            partial.push(quote(k) + (gap ? ': ' : ':') + v);
335
-                        }
336
-                    }
337
-                }
338
-            }
339
-
340
-// Join all of the member texts together, separated with commas,
341
-// and wrap them in braces.
342
-
343
-            v = partial.length === 0 ? '{}' : gap ?
344
-                '{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}' :
345
-                '{' + partial.join(',') + '}';
346
-            gap = mind;
347
-            return v;
348
-        }
349
-    }
350
-
351
-// If the JSON object does not yet have a stringify method, give it one.
352
-
353
-    if (typeof JSON.stringify !== 'function') {
354
-        JSON.stringify = function (value, replacer, space) {
355
-
356
-// The stringify method takes a value and an optional replacer, and an optional
357
-// space parameter, and returns a JSON text. The replacer can be a function
358
-// that can replace values, or an array of strings that will select the keys.
359
-// A default replacer method can be provided. Use of the space parameter can
360
-// produce text that is more easily readable.
361
-
362
-            var i;
363
-            gap = '';
364
-            indent = '';
365
-
366
-// If the space parameter is a number, make an indent string containing that
367
-// many spaces.
368
-
369
-            if (typeof space === 'number') {
370
-                for (i = 0; i < space; i += 1) {
371
-                    indent += ' ';
372
-                }
373
-
374
-// If the space parameter is a string, it will be used as the indent string.
375
-
376
-            } else if (typeof space === 'string') {
377
-                indent = space;
378
-            }
379
-
380
-// If there is a replacer, it must be a function or an array.
381
-// Otherwise, throw an error.
382
-
383
-            rep = replacer;
384
-            if (replacer && typeof replacer !== 'function' &&
385
-                    (typeof replacer !== 'object' ||
386
-                    typeof replacer.length !== 'number')) {
387
-                throw new Error('JSON.stringify');
388
-            }
389
-
390
-// Make a fake root object containing our value under the key of ''.
391
-// Return the result of stringifying the value.
392
-
393
-            return str('', {'': value});
394
-        };
395
-    }
396
-
397
-
398
-// If the JSON object does not yet have a parse method, give it one.
399
-
400
-    if (typeof JSON.parse !== 'function') {
401
-        JSON.parse = function (text, reviver) {
402
-
403
-// The parse method takes a text and an optional reviver function, and returns
404
-// a JavaScript value if the text is a valid JSON text.
405
-
406
-            var j;
407
-
408
-            function walk(holder, key) {
409
-
410
-// The walk method is used to recursively walk the resulting structure so
411
-// that modifications can be made.
412
-
413
-                var k, v, value = holder[key];
414
-                if (value && typeof value === 'object') {
415
-                    for (k in value) {
416
-                        if (Object.prototype.hasOwnProperty.call(value, k)) {
417
-                            v = walk(value, k);
418
-                            if (v !== undefined) {
419
-                                value[k] = v;
420
-                            } else {
421
-                                delete value[k];
422
-                            }
423
-                        }
424
-                    }
425
-                }
426
-                return reviver.call(holder, key, value);
427
-            }
428
-
429
-
430
-// Parsing happens in four stages. In the first stage, we replace certain
431
-// Unicode characters with escape sequences. JavaScript handles many characters
432
-// incorrectly, either silently deleting them, or treating them as line endings.
433
-
434
-            text = String(text);
435
-            cx.lastIndex = 0;
436
-            if (cx.test(text)) {
437
-                text = text.replace(cx, function (a) {
438
-                    return '\\u' +
439
-                        ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
440
-                });
441
-            }
442
-
443
-// In the second stage, we run the text against regular expressions that look
444
-// for non-JSON patterns. We are especially concerned with '()' and 'new'
445
-// because they can cause invocation, and '=' because it can cause mutation.
446
-// But just to be safe, we want to reject all unexpected forms.
447
-
448
-// We split the second stage into 4 regexp operations in order to work around
449
-// crippling inefficiencies in IE's and Safari's regexp engines. First we
450
-// replace the JSON backslash pairs with '@' (a non-JSON character). Second, we
451
-// replace all simple value tokens with ']' characters. Third, we delete all
452
-// open brackets that follow a colon or comma or that begin the text. Finally,
453
-// we look to see that the remaining characters are only whitespace or ']' or
454
-// ',' or ':' or '{' or '}'. If that is so, then the text is safe for eval.
455
-
456
-            if (/^[\],:{}\s]*$/
457
-                    .test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@')
458
-                        .replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']')
459
-                        .replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {
460
-
461
-// In the third stage we use the eval function to compile the text into a
462
-// JavaScript structure. The '{' operator is subject to a syntactic ambiguity
463
-// in JavaScript: it can begin a block or an object literal. We wrap the text
464
-// in parens to eliminate the ambiguity.
465
-
466
-                j = eval('(' + text + ')');
467
-
468
-// In the optional fourth stage, we recursively walk the new structure, passing
469
-// each name/value pair to a reviver function for possible transformation.
470
-
471
-                return typeof reviver === 'function' ?
472
-                    walk({'': j}, '') : j;
473
-            }
474
-
475
-// If the text is not JSON parseable, then a SyntaxError is thrown.
476
-
477
-            throw new SyntaxError('JSON.parse');
478
-        };
479
-    }
480
-}());
481
-
482 1
deleted file mode 100644
... ...
@@ -1,964 +0,0 @@
1
-/*!
2
- * Modernizr v1.7
3
- * http://www.modernizr.com
4
- *
5
- * Developed by: 
6
- * - Faruk Ates  http://farukat.es/
7
- * - Paul Irish  http://paulirish.com/
8
- *
9
- * Copyright (c) 2009-2011
10
- * Dual-licensed under the BSD or MIT licenses.
11
- * http://www.modernizr.com/license/
12
- */
13
-
14
- 
15
-/*
16
- * Modernizr is a script that detects native CSS3 and HTML5 features
17
- * available in the current UA and provides an object containing all
18
- * features with a true/false value, depending on whether the UA has
19
- * native support for it or not.
20
- * 
21
- * Modernizr will also add classes to the <html> element of the page,
22
- * one for each feature it detects. If the UA supports it, a class
23
- * like "cssgradients" will be added. If not, the class name will be
24
- * "no-cssgradients". This allows for simple if-conditionals in your
25
- * CSS, giving you fine control over the look & feel of your website.
26
- * 
27
- * @author        Faruk Ates
28
- * @author        Paul Irish
29
- * @copyright     (c) 2009-2011 Faruk Ates.
30
- * @contributor   Ben Alman
31
- */
32
-
33
-window.Modernizr = (function(window,document,undefined){
34
-    
35
-    var version = '1.7',
36
-
37
-    ret = {},
38
-
39
-    /**
40
-     * !! DEPRECATED !!
41
-     * 
42
-     * enableHTML5 is a private property for advanced use only. If enabled,
43
-     * it will make Modernizr.init() run through a brief while() loop in
44
-     * which it will create all HTML5 elements in the DOM to allow for
45
-     * styling them in Internet Explorer, which does not recognize any
46
-     * non-HTML4 elements unless created in the DOM this way.
47
-     * 
48
-     * enableHTML5 is ON by default.
49
-     * 
50
-     * The enableHTML5 toggle option is DEPRECATED as per 1.6, and will be
51
-     * replaced in 2.0 in lieu of the modular, configurable nature of 2.0.
52
-     */
53
-    enableHTML5 = true,
54
-    
55
-    
56
-    docElement = document.documentElement,
57
-    docHead = document.head || document.getElementsByTagName('head')[0],
58
-
59
-    /**
60
-     * Create our "modernizr" element that we do most feature tests on.
61
-     */
62
-    mod = 'modernizr',
63
-    modElem = document.createElement( mod ),
64
-    m_style = modElem.style,
65
-
66
-    /**
67
-     * Create the input element for various Web Forms feature tests.
68
-     */
69
-    inputElem = document.createElement( 'input' ),
70
-    
71
-    smile = ':)',
72
-    
73
-    tostring = Object.prototype.toString,
74
-    
75
-    // List of property values to set for css tests. See ticket #21
76
-    prefixes = ' -webkit- -moz- -o- -ms- -khtml- '.split(' '),
77
-
78
-    // Following spec is to expose vendor-specific style properties as:
79
-    //   elem.style.WebkitBorderRadius
80
-    // and the following would be incorrect:
81
-    //   elem.style.webkitBorderRadius
82
-    
83
-    // Webkit ghosts their properties in lowercase but Opera & Moz do not.
84
-    // Microsoft foregoes prefixes entirely <= IE8, but appears to 
85
-    //   use a lowercase `ms` instead of the correct `Ms` in IE9
86
-    
87
-    // More here: http://github.com/Modernizr/Modernizr/issues/issue/21
88
-    domPrefixes = 'Webkit Moz O ms Khtml'.split(' '),
89
-
90
-    ns = {'svg': 'http://www.w3.org/2000/svg'},
91
-
92
-    tests = {},
93
-    inputs = {},
94
-    attrs = {},
95
-    
96
-    classes = [],
97
-    
98
-    featurename, // used in testing loop
99
-    
100
-    
101
-    
102
-    // todo: consider using http://javascript.nwbox.com/CSSSupport/css-support.js instead
103
-    testMediaQuery = function(mq){
104
-
105
-      var st = document.createElement('style'),
106
-          div = document.createElement('div'),
107
-          ret;
108
-
109
-      st.textContent = mq + '{#modernizr{height:3px}}';
110
-      docHead.appendChild(st);
111
-      div.id = 'modernizr';
112
-      docElement.appendChild(div);
113
-
114
-      ret = div.offsetHeight === 3;
115
-
116
-      st.parentNode.removeChild(st);
117
-      div.parentNode.removeChild(div);
118
-
119
-      return !!ret;
120
-
121
-    },
122
-    
123
-    
124
-    /**
125
-      * isEventSupported determines if a given element supports the given event
126
-      * function from http://yura.thinkweb2.com/isEventSupported/
127
-      */
128
-    isEventSupported = (function(){
129
-
130
-      var TAGNAMES = {
131
-        'select':'input','change':'input',
132
-        'submit':'form','reset':'form',
133
-        'error':'img','load':'img','abort':'img'
134
-      };
135
-
136
-      function isEventSupported(eventName, element) {
137
-
138
-        element = element || document.createElement(TAGNAMES[eventName] || 'div');
139
-        eventName = 'on' + eventName;
140
-
141
-        // When using `setAttribute`, IE skips "unload", WebKit skips "unload" and "resize", whereas `in` "catches" those
142
-        var isSupported = (eventName in element);
143
-
144
-        if (!isSupported) {
145
-          // If it has no `setAttribute` (i.e. doesn't implement Node interface), try generic element
146
-          if (!element.setAttribute) {
147
-            element = document.createElement('div');
148
-          }
149
-          if (element.setAttribute && element.removeAttribute) {
150
-            element.setAttribute(eventName, '');
151
-            isSupported = is(element[eventName], 'function');
152
-
153
-            // If property was created, "remove it" (by setting value to `undefined`)
154
-            if (!is(element[eventName], undefined)) {
155
-              element[eventName] = undefined;
156
-            }
157
-            element.removeAttribute(eventName);
158
-          }
159
-        }
160
-
161
-        element = null;
162
-        return isSupported;
163
-      }
164
-      return isEventSupported;
165
-    })();
166
-    
167
-    
168
-    // hasOwnProperty shim by kangax needed for Safari 2.0 support
169
-    var _hasOwnProperty = ({}).hasOwnProperty, hasOwnProperty;
170
-    if (!is(_hasOwnProperty, undefined) && !is(_hasOwnProperty.call, undefined)) {
171
-      hasOwnProperty = function (object, property) {
172
-        return _hasOwnProperty.call(object, property);
173
-      };
174
-    }
175
-    else {
176
-      hasOwnProperty = function (object, property) { /* yes, this can give false positives/negatives, but most of the time we don't care about those */
177
-        return ((property in object) && is(object.constructor.prototype[property], undefined));
178
-      };
179
-    }
180
-    
181
-    /**
182
-     * set_css applies given styles to the Modernizr DOM node.
183
-     */
184
-    function set_css( str ) {
185
-        m_style.cssText = str;
186
-    }
187
-
188
-    /**
189
-     * set_css_all extrapolates all vendor-specific css strings.
190
-     */
191
-    function set_css_all( str1, str2 ) {
192
-        return set_css(prefixes.join(str1 + ';') + ( str2 || '' ));
193
-    }
194
-
195
-    /**
196
-     * is returns a boolean for if typeof obj is exactly type.
197
-     */
198
-    function is( obj, type ) {
199
-        return typeof obj === type;
200
-    }
201
-
202
-    /**
203
-     * contains returns a boolean for if substr is found within str.
204
-     */
205
-    function contains( str, substr ) {
206
-        return (''+str).indexOf( substr ) !== -1;
207
-    }
208
-
209
-    /**
210
-     * test_props is a generic CSS / DOM property test; if a browser supports
211
-     *   a certain property, it won't return undefined for it.
212
-     *   A supported CSS property returns empty string when its not yet set.
213
-     */
214
-    function test_props( props, callback ) {
215
-        for ( var i in props ) {
216
-            if ( m_style[ props[i] ] !== undefined && ( !callback || callback( props[i], modElem ) ) ) {
217
-                return true;
218
-            }
219
-        }
220
-    }
221
-
222
-    /**
223
-     * test_props_all tests a list of DOM properties we want to check against.
224
-     *   We specify literally ALL possible (known and/or likely) properties on 
225
-     *   the element including the non-vendor prefixed one, for forward-
226
-     *   compatibility.
227
-     */
228
-    function test_props_all( prop, callback ) {
229
-      
230
-        var uc_prop = prop.charAt(0).toUpperCase() + prop.substr(1),
231
-            props   = (prop + ' ' + domPrefixes.join(uc_prop + ' ') + uc_prop).split(' ');
232
-
233
-        return !!test_props( props, callback );
234
-    }
235
-    
236
-
237
-    /**
238
-     * Tests
239
-     * -----
240
-     */
241
-
242
-    tests['flexbox'] = function() {
243
-        /**
244
-         * set_prefixed_value_css sets the property of a specified element
245
-         * adding vendor prefixes to the VALUE of the property.
246
-         * @param {Element} element
247
-         * @param {string} property The property name. This will not be prefixed.
248
-         * @param {string} value The value of the property. This WILL be prefixed.
249
-         * @param {string=} extra Additional CSS to append unmodified to the end of
250
-         * the CSS string.
251
-         */
252
-        function set_prefixed_value_css(element, property, value, extra) {
253
-            property += ':';
254
-            element.style.cssText = (property + prefixes.join(value + ';' + property)).slice(0, -property.length) + (extra || '');
255
-        }
256
-
257
-        /**
258
-         * set_prefixed_property_css sets the property of a specified element
259
-         * adding vendor prefixes to the NAME of the property.
260
-         * @param {Element} element
261
-         * @param {string} property The property name. This WILL be prefixed.
262
-         * @param {string} value The value of the property. This will not be prefixed.
263
-         * @param {string=} extra Additional CSS to append unmodified to the end of
264
-         * the CSS string.
265
-         */
266
-        function set_prefixed_property_css(element, property, value, extra) {
267
-            element.style.cssText = prefixes.join(property + ':' + value + ';') + (extra || '');
268
-        }
269
-
270
-        var c = document.createElement('div'),
271
-            elem = document.createElement('div');
272
-
273
-        set_prefixed_value_css(c, 'display', 'box', 'width:42px;padding:0;');
274
-        set_prefixed_property_css(elem, 'box-flex', '1', 'width:10px;');
275
-
276
-        c.appendChild(elem);
277
-        docElement.appendChild(c);
278
-
279
-        var ret = elem.offsetWidth === 42;
280
-
281
-        c.removeChild(elem);
282
-        docElement.removeChild(c);
283
-
284
-        return ret;
285
-    };
286
-    
287
-    // On the S60 and BB Storm, getContext exists, but always returns undefined
288
-    // http://github.com/Modernizr/Modernizr/issues/issue/97/ 
289
-    
290
-    tests['canvas'] = function() {
291
-        var elem = document.createElement( 'canvas' );
292
-        return !!(elem.getContext && elem.getContext('2d'));
293
-    };
294
-    
295
-    tests['canvastext'] = function() {
296
-        return !!(ret['canvas'] && is(document.createElement( 'canvas' ).getContext('2d').fillText, 'function'));
297
-    };
298
-    
299
-    // This WebGL test false positives in FF depending on graphics hardware. But really it's quite impossible to know
300
-    // wether webgl will succeed until after you create the context. You might have hardware that can support
301
-    // a 100x100 webgl canvas, but will not support a 1000x1000 webgl canvas. So this feature inference is weak, 
302
-    // but intentionally so.
303
-    tests['webgl'] = function(){
304
-        return !!window.WebGLRenderingContext;
305
-    };
306
-    
307
-    /*
308
-     * The Modernizr.touch test only indicates if the browser supports
309
-     *    touch events, which does not necessarily reflect a touchscreen
310
-     *    device, as evidenced by tablets running Windows 7 or, alas,
311
-     *    the Palm Pre / WebOS (touch) phones.
312
-     *    
313
-     * Additionally, Chrome (desktop) used to lie about its support on this,
314
-     *    but that has since been rectified: http://crbug.com/36415
315
-     *    
316
-     * We also test for Firefox 4 Multitouch Support.
317
-     *
318
-     * For more info, see: http://modernizr.github.com/Modernizr/touch.html
319
-     */
320
-     
321
-    tests['touch'] = function() {
322
-
323
-        return ('ontouchstart' in window) || testMediaQuery('@media ('+prefixes.join('touch-enabled),(')+'modernizr)');
324
-
325
-    };
326
-
327
-
328
-    /**
329
-     * geolocation tests for the new Geolocation API specification.
330
-     *   This test is a standards compliant-only test; for more complete
331
-     *   testing, including a Google Gears fallback, please see:
332
-     *   http://code.google.com/p/geo-location-javascript/
333
-     * or view a fallback solution using google's geo API:
334
-     *   http://gist.github.com/366184
335
-     */
336
-    tests['geolocation'] = function() {
337
-        return !!navigator.geolocation;
338
-    };
339
-
340
-    // Per 1.6: 
341
-    // This used to be Modernizr.crosswindowmessaging but the longer
342
-    // name has been deprecated in favor of a shorter and property-matching one.
343
-    // The old API is still available in 1.6, but as of 2.0 will throw a warning,
344
-    // and in the first release thereafter disappear entirely.
345
-    tests['postmessage'] = function() {
346
-      return !!window.postMessage;
347
-    };
348
-
349
-    // Web SQL database detection is tricky:
350
-
351
-    // In chrome incognito mode, openDatabase is truthy, but using it will 
352
-    //   throw an exception: http://crbug.com/42380
353
-    // We can create a dummy database, but there is no way to delete it afterwards. 
354
-    
355
-    // Meanwhile, Safari users can get prompted on any database creation.
356
-    //   If they do, any page with Modernizr will give them a prompt:
357
-    //   http://github.com/Modernizr/Modernizr/issues/closed#issue/113
358
-    
359
-    // We have chosen to allow the Chrome incognito false positive, so that Modernizr
360
-    //   doesn't litter the web with these test databases. As a developer, you'll have
361
-    //   to account for this gotcha yourself.
362
-    tests['websqldatabase'] = function() {
363
-      var result = !!window.openDatabase;
364
-      /*  if (result){
365
-            try {
366
-              result = !!openDatabase( mod + "testdb", "1.0", mod + "testdb", 2e4);
367
-            } catch(e) {
368
-            }
369
-          }  */
370
-      return result;
371
-    };
372
-    
373
-    // Vendors have inconsistent prefixing with the experimental Indexed DB:
374
-    // - Firefox is shipping indexedDB in FF4 as moz_indexedDB
375
-    // - Webkit's implementation is accessible through webkitIndexedDB
376
-    // We test both styles.
377
-    tests['indexedDB'] = function(){
378
-      for (var i = -1, len = domPrefixes.length; ++i < len; ){ 
379
-        var prefix = domPrefixes[i].toLowerCase();
380
-        if (window[prefix + '_indexedDB'] || window[prefix + 'IndexedDB']){
381
-          return true;
382
-        } 
383
-      }
384
-      return false;
385
-    };
386
-
387
-    // documentMode logic from YUI to filter out IE8 Compat Mode
388
-    //   which false positives.
389
-    tests['hashchange'] = function() {
390
-      return isEventSupported('hashchange', window) && ( document.documentMode === undefined || document.documentMode > 7 );
391
-    };
392
-
393
-    // Per 1.6: 
394
-    // This used to be Modernizr.historymanagement but the longer
395
-    // name has been deprecated in favor of a shorter and property-matching one.
396
-    // The old API is still available in 1.6, but as of 2.0 will throw a warning,
397
-    // and in the first release thereafter disappear entirely.
398
-    tests['history'] = function() {
399
-      return !!(window.history && history.pushState);
400
-    };
401
-
402
-    tests['draganddrop'] = function() {
403
-        return isEventSupported('dragstart') && isEventSupported('drop');
404
-    };
405
-    
406
-    tests['websockets'] = function(){
407
-        return ('WebSocket' in window);
408
-    };
409
-    
410
-    
411
-    // http://css-tricks.com/rgba-browser-support/
412
-    tests['rgba'] = function() {
413
-        // Set an rgba() color and check the returned value
414
-        
415
-        set_css(  'background-color:rgba(150,255,150,.5)' );
416
-        
417
-        return contains( m_style.backgroundColor, 'rgba' );
418
-    };
419
-    
420
-    tests['hsla'] = function() {
421
-        // Same as rgba(), in fact, browsers re-map hsla() to rgba() internally,
422
-        //   except IE9 who retains it as hsla
423
-        
424
-        set_css('background-color:hsla(120,40%,100%,.5)' );
425
-        
426
-        return contains( m_style.backgroundColor, 'rgba' ) || contains( m_style.backgroundColor, 'hsla' );
427
-    };
428
-    
429
-    tests['multiplebgs'] = function() {
430
-        // Setting multiple images AND a color on the background shorthand property
431
-        //  and then querying the style.background property value for the number of
432
-        //  occurrences of "url(" is a reliable method for detecting ACTUAL support for this!
433
-        
434
-        set_css( 'background:url(//:),url(//:),red url(//:)' );
435
-        
436
-        // If the UA supports multiple backgrounds, there should be three occurrences
437
-        //   of the string "url(" in the return value for elem_style.background
438
-
439
-        return new RegExp("(url\\s*\\(.*?){3}").test(m_style.background);
440
-    };
441
-    
442
-    
443
-    // In testing support for a given CSS property, it's legit to test:
444
-    //    `elem.style[styleName] !== undefined`
445
-    // If the property is supported it will return an empty string,
446
-    // if unsupported it will return undefined.
447
-    
448
-    // We'll take advantage of this quick test and skip setting a style 
449
-    // on our modernizr element, but instead just testing undefined vs
450
-    // empty string.
451
-    
452
-
453
-    tests['backgroundsize'] = function() {
454
-        return test_props_all( 'backgroundSize' );
455
-    };
456
-    
457
-    tests['borderimage'] = function() {
458
-        return test_props_all( 'borderImage' );
459
-    };
460
-    
461
-    
462
-    // Super comprehensive table about all the unique implementations of 
463
-    // border-radius: http://muddledramblings.com/table-of-css3-border-radius-compliance
464
-    
465
-    tests['borderradius'] = function() {
466
-        return test_props_all( 'borderRadius', '', function( prop ) {
467
-            return contains( prop, 'orderRadius' );
468
-        });
469
-    };
470
-    
471
-    // WebOS unfortunately false positives on this test.
472
-    tests['boxshadow'] = function() {
473
-        return test_props_all( 'boxShadow' );
474
-    };
475
-    
476
-    // FF3.0 will false positive on this test 
477
-    tests['textshadow'] = function(){
478
-        return document.createElement('div').style.textShadow === '';
479
-    };
480
-    
481
-    
482
-    tests['opacity'] = function() {
483
-        // Browsers that actually have CSS Opacity implemented have done so
484
-        //  according to spec, which means their return values are within the
485
-        //  range of [0.0,1.0] - including the leading zero.
486
-        
487
-        set_css_all( 'opacity:.55' );
488
-        
489
-        // The non-literal . in this regex is intentional:
490
-        //   German Chrome returns this value as 0,55
491
-        // https://github.com/Modernizr/Modernizr/issues/#issue/59/comment/516632
492
-        return /^0.55$/.test(m_style.opacity);
493
-    };
494
-    
495
-    
496
-    tests['cssanimations'] = function() {
497
-        return test_props_all( 'animationName' );
498
-    };
499
-    
500
-    
501
-    tests['csscolumns'] = function() {
502
-        return test_props_all( 'columnCount' );
503
-    };
504
-    
505
-    
506
-    tests['cssgradients'] = function() {
507
-        /**
508
-         * For CSS Gradients syntax, please see:
509
-         * http://webkit.org/blog/175/introducing-css-gradients/
510
-         * https://developer.mozilla.org/en/CSS/-moz-linear-gradient
511
-         * https://developer.mozilla.org/en/CSS/-moz-radial-gradient
512
-         * http://dev.w3.org/csswg/css3-images/#gradients-
513
-         */
514
-        
515
-        var str1 = 'background-image:',
516
-            str2 = 'gradient(linear,left top,right bottom,from(#9f9),to(white));',
517
-            str3 = 'linear-gradient(left top,#9f9, white);';
518
-        
519
-        set_css(
520
-            (str1 + prefixes.join(str2 + str1) + prefixes.join(str3 + str1)).slice(0,-str1.length)
521
-        );
522
-        
523
-        return contains( m_style.backgroundImage, 'gradient' );
524
-    };
525
-    
526
-    
527
-    tests['cssreflections'] = function() {
528
-        return test_props_all( 'boxReflect' );
529
-    };
530
-    
531
-    
532
-    tests['csstransforms'] = function() {
533
-        return !!test_props([ 'transformProperty', 'WebkitTransform', 'MozTransform', 'OTransform', 'msTransform' ]);
534
-    };
535
-    
536
-    
537
-    tests['csstransforms3d'] = function() {
538
-        
539
-        var ret = !!test_props([ 'perspectiveProperty', 'WebkitPerspective', 'MozPerspective', 'OPerspective', 'msPerspective' ]);
540
-        
541
-        // Webkit’s 3D transforms are passed off to the browser's own graphics renderer.
542
-        //   It works fine in Safari on Leopard and Snow Leopard, but not in Chrome in
543
-        //   some conditions. As a result, Webkit typically recognizes the syntax but 
544
-        //   will sometimes throw a false positive, thus we must do a more thorough check:
545
-        if (ret && 'webkitPerspective' in docElement.style){
546
-          
547
-          // Webkit allows this media query to succeed only if the feature is enabled.    
548
-          // `@media (transform-3d),(-o-transform-3d),(-moz-transform-3d),(-ms-transform-3d),(-webkit-transform-3d),(modernizr){ ... }`    
549
-          ret = testMediaQuery('@media ('+prefixes.join('transform-3d),(')+'modernizr)');
550
-        }
551
-        return ret;
552
-    };
553
-    
554
-    
555
-    tests['csstransitions'] = function() {
556
-        return test_props_all( 'transitionProperty' );
557
-    };
558
-
559
-
560
-    // @font-face detection routine by Diego Perini
561
-    // http://javascript.nwbox.com/CSSSupport/
562
-    tests['fontface'] = function(){
563
-
564
-        var 
565
-        sheet, bool,
566
-        head = docHead || docElement,
567
-        style = document.createElement("style"),
568
-        impl = document.implementation || { hasFeature: function() { return false; } };
569
-        
570
-        style.type = 'text/css';
571
-        head.insertBefore(style, head.firstChild);
572
-        sheet = style.sheet || style.styleSheet;
573
-
574
-        var supportAtRule = impl.hasFeature('CSS2', '') ?
575
-                function(rule) {
576
-                    if (!(sheet && rule)) return false;
577
-                    var result = false;
578
-                    try {
579
-                        sheet.insertRule(rule, 0);
580
-                        result = (/src/i).test(sheet.cssRules[0].cssText);
581
-                        sheet.deleteRule(sheet.cssRules.length - 1);
582
-                    } catch(e) { }
583
-                    return result;
584
-                } :
585
-                function(rule) {
586
-                    if (!(sheet && rule)) return false;
587
-                    sheet.cssText = rule;
588
-                    
589
-                    return sheet.cssText.length !== 0 && (/src/i).test(sheet.cssText) &&
590
-                      sheet.cssText
591
-                            .replace(/\r+|\n+/g, '')
592
-                            .indexOf(rule.split(' ')[0]) === 0;
593
-                };
594
-        
595
-        bool = supportAtRule('@font-face { font-family: "font"; src: url(data:,); }');
596
-        head.removeChild(style);
597
-        return bool;
598
-    };
599
-    
600
-
601
-    // These tests evaluate support of the video/audio elements, as well as
602
-    // testing what types of content they support.
603
-    //
604
-    // We're using the Boolean constructor here, so that we can extend the value
605
-    // e.g.  Modernizr.video     // true
606
-    //       Modernizr.video.ogg // 'probably'
607
-    //
608
-    // Codec values from : http://github.com/NielsLeenheer/html5test/blob/9106a8/index.html#L845
609
-    //                     thx to NielsLeenheer and zcorpan
610
-    
611
-    // Note: in FF 3.5.1 and 3.5.0, "no" was a return value instead of empty string.
612
-    //   Modernizr does not normalize for that.
613
-    
614
-    tests['video'] = function() {
615
-        var elem = document.createElement('video'),
616
-            bool = !!elem.canPlayType;
617
-        
618
-        if (bool){  
619
-            bool      = new Boolean(bool);  
620
-            bool.ogg  = elem.canPlayType('video/ogg; codecs="theora"');
621
-            
622
-            // Workaround required for IE9, which doesn't report video support without audio codec specified.
623
-            //   bug 599718 @ msft connect
624
-            var h264 = 'video/mp4; codecs="avc1.42E01E';
625
-            bool.h264 = elem.canPlayType(h264 + '"') || elem.canPlayType(h264 + ', mp4a.40.2"');
626
-            
627
-            bool.webm = elem.canPlayType('video/webm; codecs="vp8, vorbis"');
628
-        }
629
-        return bool;
630
-    };
631
-    
632
-    tests['audio'] = function() {
633
-        var elem = document.createElement('audio'),
634
-            bool = !!elem.canPlayType;
635
-        
636
-        if (bool){  
637
-            bool      = new Boolean(bool);  
638
-            bool.ogg  = elem.canPlayType('audio/ogg; codecs="vorbis"');
639
-            bool.mp3  = elem.canPlayType('audio/mpeg;');
640
-            
641
-            // Mimetypes accepted: 
642
-            //   https://developer.mozilla.org/En/Media_formats_supported_by_the_audio_and_video_elements
643
-            //   http://bit.ly/iphoneoscodecs
644
-            bool.wav  = elem.canPlayType('audio/wav; codecs="1"');
645
-            bool.m4a  = elem.canPlayType('audio/x-m4a;') || elem.canPlayType('audio/aac;');
646
-        }
647
-        return bool;
648
-    };
649
-
650
-
651
-    // Firefox has made these tests rather unfun.
652
-
653
-    // In FF4, if disabled, window.localStorage should === null.
654
-
655
-    // Normally, we could not test that directly and need to do a 
656
-    //   `('localStorage' in window) && ` test first because otherwise Firefox will
657
-    //   throw http://bugzil.la/365772 if cookies are disabled
658
-
659
-    // However, in Firefox 4 betas, if dom.storage.enabled == false, just mentioning
660
-    //   the property will throw an exception. http://bugzil.la/599479
661
-    // This looks to be fixed for FF4 Final.
662
-
663
-    // Because we are forced to try/catch this, we'll go aggressive.
664
-
665
-    // FWIW: IE8 Compat mode supports these features completely:
666
-    //   http://www.quirksmode.org/dom/html5.html
667
-    // But IE8 doesn't support either with local files
668
-
669
-    tests['localstorage'] = function() {
670
-        try {
671
-            return !!localStorage.getItem;
672
-        } catch(e) {
673
-            return false;
674
-        }
675
-    };
676
-
677
-    tests['sessionstorage'] = function() {
678
-        try {
679
-            return !!sessionStorage.getItem;
680
-        } catch(e){
681
-            return false;
682
-        }
683
-    };
684
-
685
-
686
-    tests['webWorkers'] = function () {
687
-        return !!window.Worker;
688
-    };
689
-
690
-
691
-    tests['applicationcache'] =  function() {
692
-        return !!window.applicationCache;
693
-    };
694
-
695
- 
696
-    // Thanks to Erik Dahlstrom
697
-    tests['svg'] = function(){
698
-        return !!document.createElementNS && !!document.createElementNS(ns.svg, "svg").createSVGRect;
699
-    };
700
-
701
-    tests['inlinesvg'] = function() {
702
-      var div = document.createElement('div');
703
-      div.innerHTML = '<svg/>';
704
-      return (div.firstChild && div.firstChild.namespaceURI) == ns.svg;
705
-    };
706
-
707
-    // Thanks to F1lt3r and lucideer
708
-    // http://github.com/Modernizr/Modernizr/issues#issue/35
709
-    tests['smil'] = function(){
710
-        return !!document.createElementNS && /SVG/.test(tostring.call(document.createElementNS(ns.svg,'animate')));
711
-    };
712
-
713
-    tests['svgclippaths'] = function(){
714
-        // Possibly returns a false positive in Safari 3.2?
715
-        return !!document.createElementNS && /SVG/.test(tostring.call(document.createElementNS(ns.svg,'clipPath')));
716
-    };
717
-
718
-
719
-    // input features and input types go directly onto the ret object, bypassing the tests loop.
720
-    // Hold this guy to execute in a moment.
721
-    function webforms(){
722
-    
723
-        // Run through HTML5's new input attributes to see if the UA understands any.
724
-        // We're using f which is the <input> element created early on
725
-        // Mike Taylr has created a comprehensive resource for testing these attributes
726
-        //   when applied to all input types: 
727
-        //   http://miketaylr.com/code/input-type-attr.html
728
-        // spec: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
729
-        ret['input'] = (function(props) {
730
-            for (var i = 0, len = props.length; i<len; i++) {
731
-                attrs[ props[i] ] = !!(props[i] in inputElem);
732
-            }
733
-            return attrs;
734
-        })('autocomplete autofocus list placeholder max min multiple pattern required step'.split(' '));
735
-
736
-        // Run through HTML5's new input types to see if the UA understands any.
737
-        //   This is put behind the tests runloop because it doesn't return a
738
-        //   true/false like all the other tests; instead, it returns an object
739
-        //   containing each input type with its corresponding true/false value 
740
-        
741
-        // Big thanks to @miketaylr for the html5 forms expertise. http://miketaylr.com/
742
-        ret['inputtypes'] = (function(props) {
743
-          
744
-            for (var i = 0, bool, inputElemType, defaultView, len=props.length; i < len; i++) {
745
-              
746
-                inputElem.setAttribute('type', inputElemType = props[i]);
747
-                bool = inputElem.type !== 'text';
748
-                
749
-                // We first check to see if the type we give it sticks.. 
750
-                // If the type does, we feed it a textual value, which shouldn't be valid.
751
-                // If the value doesn't stick, we know there's input sanitization which infers a custom UI
752
-                if (bool){  
753
-                  
754
-                    inputElem.value         = smile;
755
-                    inputElem.style.cssText = 'position:absolute;visibility:hidden;';
756
-     
757
-                    if (/^range$/.test(inputElemType) && inputElem.style.WebkitAppearance !== undefined){
758
-                      
759
-                      docElement.appendChild(inputElem);
760
-                      defaultView = document.defaultView;
761
-                      
762
-                      // Safari 2-4 allows the smiley as a value, despite making a slider
763
-                      bool =  defaultView.getComputedStyle && 
764
-                              defaultView.getComputedStyle(inputElem, null).WebkitAppearance !== 'textfield' &&                  
765
-                              // Mobile android web browser has false positive, so must
766
-                              // check the height to see if the widget is actually there.
767
-                              (inputElem.offsetHeight !== 0);
768
-                              
769
-                      docElement.removeChild(inputElem);
770
-                              
771
-                    } else if (/^(search|tel)$/.test(inputElemType)){
772
-                      // Spec doesnt define any special parsing or detectable UI 
773
-                      //   behaviors so we pass these through as true
774
-                      
775
-                      // Interestingly, opera fails the earlier test, so it doesn't
776
-                      //  even make it here.
777
-                      
778
-                    } else if (/^(url|email)$/.test(inputElemType)) {
779
-                      // Real url and email support comes with prebaked validation.
780
-                      bool = inputElem.checkValidity && inputElem.checkValidity() === false;
781
-                      
782
-                    } else if (/^color$/.test(inputElemType)) {
783
-                        // chuck into DOM and force reflow for Opera bug in 11.00
784
-                        // github.com/Modernizr/Modernizr/issues#issue/159
785
-                        docElement.appendChild(inputElem);
786
-                        docElement.offsetWidth; 
787
-                        bool = inputElem.value != smile;
788
-                        docElement.removeChild(inputElem);
789
-
790
-                    } else {
791
-                      // If the upgraded input compontent rejects the :) text, we got a winner
792
-                      bool = inputElem.value != smile;
793
-                    }
794
-                }
795
-                
796
-                inputs[ props[i] ] = !!bool;
797
-            }
798
-            return inputs;
799
-        })('search tel url email datetime date month week time datetime-local number range color'.split(' '));
800
-
801
-    }
802
-
803
-
804
-
805
-    // End of test definitions
806
-    // -----------------------
807
-
808
-
809
-
810
-    // Run through all tests and detect their support in the current UA.
811
-    // todo: hypothetically we could be doing an array of tests and use a basic loop here.
812
-    for ( var feature in tests ) {
813
-        if ( hasOwnProperty( tests, feature ) ) {
814
-            // run the test, throw the return value into the Modernizr,
815
-            //   then based on that boolean, define an appropriate className
816
-            //   and push it into an array of classes we'll join later.
817
-            featurename  = feature.toLowerCase();
818
-            ret[ featurename ] = tests[ feature ]();
819
-
820
-            classes.push( ( ret[ featurename ] ? '' : 'no-' ) + featurename );
821
-        }
822
-    }
823
-    
824
-    // input tests need to run.
825
-    if (!ret.input) webforms();
826
-    
827
-
828
-   
829
-    // Per 1.6: deprecated API is still accesible for now:
830
-    ret.crosswindowmessaging = ret.postmessage;
831
-    ret.historymanagement = ret.history;
832
-
833
-
834
-
835
-    /**
836
-     * Addtest allows the user to define their own feature tests
837
-     * the result will be added onto the Modernizr object,
838
-     * as well as an appropriate className set on the html element
839
-     * 
840
-     * @param feature - String naming the feature
841
-     * @param test - Function returning true if feature is supported, false if not
842
-     */
843
-    ret.addTest = function (feature, test) {
844
-      feature = feature.toLowerCase();
845
-      
846
-      if (ret[ feature ]) {
847
-        return; // quit if you're trying to overwrite an existing test
848
-      } 
849
-      test = !!(test());
850
-      docElement.className += ' ' + (test ? '' : 'no-') + feature; 
851
-      ret[ feature ] = test;
852
-      return ret; // allow chaining.
853
-    };
854
-
855
-    /**
856
-     * Reset m.style.cssText to nothing to reduce memory footprint.
857
-     */
858
-    set_css( '' );
859
-    modElem = inputElem = null;
860
-
861
-    //>>BEGIN IEPP
862
-    // Enable HTML 5 elements for styling in IE. 
863
-    // fyi: jscript version does not reflect trident version
864
-    //      therefore ie9 in ie7 mode will still have a jScript v.9
865
-    if ( enableHTML5 && window.attachEvent && (function(){ var elem = document.createElement("div");
866
-                                      elem.innerHTML = "<elem></elem>";
867
-                                      return elem.childNodes.length !== 1; })()) {
868
-        // iepp v1.6.2 by @jon_neal : code.google.com/p/ie-print-protector
869
-        (function(win, doc) {
870
-          var elems = 'abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video',
871
-            elemsArr = elems.split('|'),
872
-            elemsArrLen = elemsArr.length,
873
-            elemRegExp = new RegExp('(^|\\s)('+elems+')', 'gi'), 
874
-            tagRegExp = new RegExp('<(\/*)('+elems+')', 'gi'),
875
-            ruleRegExp = new RegExp('(^|[^\\n]*?\\s)('+elems+')([^\\n]*)({[\\n\\w\\W]*?})', 'gi'),
876
-            docFrag = doc.createDocumentFragment(),
877
-            html = doc.documentElement,
878
-            head = html.firstChild,
879
-            bodyElem = doc.createElement('body'),
880
-            styleElem = doc.createElement('style'),
881
-            body;
882
-          function shim(doc) {
883
-            var a = -1;
884
-            while (++a < elemsArrLen)
885
-              // Use createElement so IE allows HTML5-named elements in a document
886
-              doc.createElement(elemsArr[a]);
887
-          }
888
-          function getCSS(styleSheetList, mediaType) {
889
-            var a = -1,
890
-              len = styleSheetList.length,
891
-              styleSheet,
892
-              cssTextArr = [];
893
-            while (++a < len) {
894
-              styleSheet = styleSheetList[a];
895
-              // Get css from all non-screen stylesheets and their imports
896
-              if ((mediaType = styleSheet.media || mediaType) != 'screen') cssTextArr.push(getCSS(styleSheet.imports, mediaType), styleSheet.cssText);
897
-            }
898
-            return cssTextArr.join('');
899
-          }
900
-          // Shim the document and iepp fragment
901
-          shim(doc);
902
-          shim(docFrag);
903
-          // Add iepp custom print style element
904
-          head.insertBefore(styleElem, head.firstChild);
905
-          styleElem.media = 'print';
906
-          win.attachEvent(
907
-            'onbeforeprint',
908
-            function() {
909
-              var a = -1,
910
-                cssText = getCSS(doc.styleSheets, 'all'),
911
-                cssTextArr = [],
912
-                rule;
913
-              body = body || doc.body;
914
-              // Get only rules which reference HTML5 elements by name
915
-              while ((rule = ruleRegExp.exec(cssText)) != null)
916
-                // Replace all html5 element references with iepp substitute classnames
917
-                cssTextArr.push((rule[1]+rule[2]+rule[3]).replace(elemRegExp, '$1.iepp_$2')+rule[4]);
918
-              // Write iepp custom print CSS
919
-              styleElem.styleSheet.cssText = cssTextArr.join('\n');
920
-              while (++a < elemsArrLen) {
921
-                var nodeList = doc.getElementsByTagName(elemsArr[a]),
922
-                  nodeListLen = nodeList.length,
923
-                  b = -1;
924
-                while (++b < nodeListLen)
925
-                  if (nodeList[b].className.indexOf('iepp_') < 0)
926
-                    // Append iepp substitute classnames to all html5 elements
927
-                    nodeList[b].className += ' iepp_'+elemsArr[a];
928
-              }
929
-              docFrag.appendChild(body);
930
-              html.appendChild(bodyElem);
931
-              // Write iepp substitute print-safe document
932
-              bodyElem.className = body.className;
933
-              // Replace HTML5 elements with <font> which is print-safe and shouldn't conflict since it isn't part of html5
934
-              bodyElem.innerHTML = body.innerHTML.replace(tagRegExp, '<$1font');
935
-            }
936
-          );
937
-          win.attachEvent(
938
-            'onafterprint',
939
-            function() {
940
-              // Undo everything done in onbeforeprint
941
-              bodyElem.innerHTML = '';
942
-              html.removeChild(bodyElem);
943
-              html.appendChild(body);
944
-              styleElem.styleSheet.cssText = '';
945
-            }
946
-          );
947
-        })(window, document);
948
-    }
949
-    //>>END IEPP
950
-
951
-    // Assign private properties to the return object with prefix
952
-    ret._enableHTML5     = enableHTML5;
953
-    ret._version         = version;
954
-
955
-    // Remove "no-js" class from <html> element, if it exists:
956
-    docElement.className = docElement.className.replace(/\bno-js\b/,'') 
957
-                            + ' js '
958
-
959
-                            // Add the new classes to the <html> element.
960
-                            + classes.join( ' ' );
961
-    
962
-    return ret;
963
-
964
-})(this,this.document);
965 1
\ No newline at end of file
966 2
deleted file mode 100644
967 3
deleted file mode 100644
... ...
@@ -1,48 +0,0 @@
1
-function pinboardNS_fetch_script(url) {
2
-  console.log(url);
3
-  document.writeln('<s'+'cript type="text/javascript" src="' + url + '"></s'+'cript>');
4
-}
5
-
6
-function pinboardNS_show_bmarks(r) {
7
-  var lr = new Pinboard_Linkroll();
8
-  lr.set_items(r);
9
-  lr.show_bmarks();
10
-}
11
-
12
-function Pinboard_Linkroll() {
13
-  var items;
14
-
15
-  this.set_items = function(i) {
16
-    this.items = i;
17
-  }
18
-  this.show_bmarks = function() {
19
-    var lines = [];
20
-    for (var i = 0; i < this.items.length; i++) {
21
-      var item = this.items[i];
22
-      var str = this.format_item(item);
23
-      lines.push(str);
24
-    }
25
-    document.getElementById(linkroll).innerHTML = lines.join("\n");
26
-  }
27
-  this.cook = function(v) {
28
-    return v.replace('<', '&lt;').replace('>', '&gt>');
29
-  }
30
-
31
-  this.format_item = function(it) {
32
-    var str = "<li class=\"pin-item\">";
33
-    if (!it.d) { return; }
34
-    str += "<p><a class=\"pin-title\" href=\"" + this.cook(it.u) + "\">" + this.cook(it.d) + "</a>";
35
-    if (it.n) {
36
-      str += "<span class=\"pin-description\">" + this.cook(it.n) + "</span>\n";
37
-    }
38
-    if (it.t.length > 0) {
39
-      for (var i = 0; i < it.t.length; i++) {
40
-        var tag = it.t[i];
41
-        str += " <a class=\"pin-tag\" href=\"http://pinboard.in/u:"+ this.cook(it.a) + "/t:" + this.cook(tag) + "\">" + this.cook(tag).replace(/^\s+|\s+$/g, '') + "</a> ";
42
-      }
43
-    }
44
-    str += "</p></li>\n";
45
-    return str;
46
-  }
47
-}
48
-Pinboard_Linkroll.prototype = new Pinboard_Linkroll();
49 1
deleted file mode 100644
... ...
@@ -1,30 +0,0 @@
1
-function addDivLines(){
2
-  $('div.highlight pre code').each(function(el){
3
-    var content = bonzo(el).html();
4
-    var lines = content.split('\n');
5
-    var count = lines.length;
6
-    bonzo(lines).each(function(line, index){
7
-      if(line == '') line = ' ';
8
-      lines[index] = '<div class="line">' + line + '</div>';
9
-    });
10
-    $(el).html(lines.join(''));
11
-  });
12
-}
13
-function preToTable(){
14
-  $('div.highlight').each(function(code){
15
-    var tableStart = '<table cellpadding="0" cellspacing="0"><tbody><tr><td class="gutter">';
16
-    var lineNumbers = '<pre class="line-numbers">';
17
-    var tableMiddle = '</pre></td><td class="code" width="100%">';
18
-    var tableEnd = '</td></tr></tbody></table>';
19
-    var count = $('div.line', code).length;
20
-    for (i=1;i<=count; i++){
21
-      lineNumbers += '<span class="line">'+i+'</span>\n';
22
-    }
23
-    table = tableStart + lineNumbers + tableMiddle + '<pre>'+$('pre', code).html()+'</pre>' + tableEnd;
24
-    $(code).html(table);
25
-  });
26
-}
27
-$.domReady(function () {
28
-  addDivLines();
29
-  preToTable();
30
-});
31 1
deleted file mode 100644
... ...
@@ -1,64 +0,0 @@
1
-function getTwitterFeed(success, user, count, replies) {
2
-  feed = new jXHR();
3
-  feed.onerror = function (msg,url) { alert(msg); }
4
-  feed.onreadystatechange = function(data){
5
-    if (feed.readyState === 4) {
6
-      var tweets = new Array();
7
-      for (i in data){
8
-        if(tweets.length < count){
9
-          if(replies || data[i].in_reply_to_user_id == null){
10
-            tweets.push(data[i]);
11
-          }
12
-        }
13
-      }
14
-      success(tweets);
15
-    }
16
-  };
17
-  feed.open("GET","http://twitter.com/statuses/user_timeline/"+user+".json?trim_user=true&count="+parseInt(count)+25+"&callback=?");
18
-  feed.send();
19
-}
20
-
21
-getTwitterFeed(showTwitterFeed, twitter_user, tweet_count, show_replies);
22
-
23
-function showTwitterFeed(tweets){
24
-  var timeline = document.getElementById('tweets');
25
-  timeline.innerHTML='';
26
-  for (t in tweets){
27
-    timeline.innerHTML+='<li>'+'<p>'+'<a href="http://twitter.com/'+twitter_user+'/status/'+tweets[t].id_str+'"><span>&infin;</span><span>'+prettyDate(tweets[t].created_at)+'</span></a>'+linkifyTweet(tweets[t].text)+'</p>'+'</li>';
28
-  }
29
-}
30
-function linkifyTweet(text){
31
-  return text.replace(/(https?:\/\/)([\w\-:;?&=+.%#\/]+)/gi, '<a href="$1$2">$2</a>')
32
-    .replace(/(^|\W)@(\w+)/g, '$1<a href="http://twitter.com/$2">@$2</a>')
33
-    .replace(/(^|\W)#(\w+)/g, '$1<a href="http://search.twitter.com/search?q=%23$2">#$2</a>');
34
-}
35
-
36
-function prettyDate(date_str){
37
-  var time_formats = [
38
-    [60, 'now', 1], // 60
39
-    [120, '1 min', '1 minute from now'], // 60*2
40
-    [3600, 'mins', 60], // 60*60, 60
41
-    [7200, '1 hour', '1 hour from now'], // 60*60*2
42
-    [86400, 'hours', 3600], // 60*60*24, 60*60
43
-    [172800, '1 day', 'tomorrow'], // 60*60*24*2
44
-    [2903040000, 'days', 86400], // 60*60*24*7, 60*60*24
45
-  ];
46
-  var time = ('' + date_str).replace(/-/g,"/").replace(/[TZ]/g," ").replace(/^\s\s*/, '').replace(/\s\s*$/, '');
47
-  if(time.substr(time.length-4,1)==".") time =time.substr(0,time.length-4);
48
-  var seconds = (new Date - new Date(time)) / 1000;
49
-  var token = 'ago', list_choice = 1;
50
-  if (seconds < 0) {
51
-    seconds = Math.abs(seconds);
52
-    token = 'from now';
53
-    list_choice = 2;
54
-  }
55
-  var i = 0, format;
56
-  while (format = time_formats[i++])
57
-    if (seconds < format[0]) {
58
-      if (typeof format[2] == 'string')
59
-        return format[list_choice];
60
-      else
61
-        return Math.floor(seconds / format[2]) + ' ' + format[1];
62
-    }
63
-    return time;
64
-};
65 1
deleted file mode 100644
... ...
@@ -1,397 +0,0 @@
1
-layout: default
2
-layout: page
3
-nometa: true
4
-title: Syntax Highlighting Debug
5
-
6
-<h3 class="filename">gist_syntax_test.rb</h3>
7
-{% gist 996818 test.rb %}
8
-
9
-<h3 class="filename">syntax_test.diff</h3>
10
-{% highlight diff %}
11
-@@ -590,7 +590,7 @@ class SpritesTest < Test::Unit::TestCase
12
-   it "should generate a sprite from nested folders" do
13
-     css = render <<-SCSS
14
--      @import "nested/*.png";
15
-+      @import "nested/**/*.png";
16
-       @include all-nested-sprites;
17
-     SCSS
18
-     assert_correct css, <<-CSS
19
-
20
-{% endhighlight %}
21
-
22
-<h3 class="filename">syntax_test.html</h3>
23
-{% highlight html %}
24
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
25
-<html><head>
26
-<title>A Tiny Page</title>
27
-<style type="text/css">
28
-<!--
29
-      p { font-size:15pt; color:#000 }
30
-    -->
31
-</style></head><!-- real comment -->
32
-<body bgcolor="#FFFFFF" text="#000000" link="#0000CC">
33
-<script language="javascript" type="text/javascript">
34
-      function changeHeight(h) {
35
-        var tds = document.getElementsByTagName("td");
36
-        for(var i = 0; i < tds.length; i++) {
37
-          tds[i].setAttribute("height", h + "px");
38
-      }}
39
-</script>
40
-<h1>abc</h1>
41
-<h2>def</h2>
42
-<p>Testing page</p>
43
-</body></html>
44
-{% endhighlight %}
45
-
46
-<h3 class="filename">syntax_test.js</h3>
47
-{% highlight js %}
48
-
49
-/**
50
-sample javascript from xui
51
-*/
52
-
53
-var undefined,
54
-    xui,
55
-    window     = this,
56
-    string     = new String('string'),
57
-    document   = window.document,
58
-    simpleExpr = /^#?([\w-]+)$/,
59
-    idExpr     = /^#/,
60
-    tagExpr    = /<([\w:]+)/,
61
-    slice      = function (e) { return [].slice.call(e, 0); };
62
-    try { var a = slice(document.documentElement.childNodes)[0].nodeType; }
63
-    catch(e){ slice = function (e) { var ret=[]; for (var i=0; e[i]; i++)
64
-        ret.push(e[i]); return ret; }; }
65
-
66
-window.x$ = window.xui = xui = function(q, context) {
67
-    return new xui.fn.find(q, context);
68
-};
69
-
70
-
71
-{% endhighlight %}
72
-
73
-<h3 class="filename">syntax_test.rb</h3>
74
-{% highlight ruby %}
75
-
76
-include Enumerable
77
-
78
-def initialize(rbconfig)
79
-@rbconfig = rbconfig
80
-@no_harm = false
81
-end
82
-
83
-def load_savefile
84
-begin
85
-    File.foreach(savefile()) do |line|
86
-    k, v = *line.split(/=/, 2)
87
-    self[k] = v.strip
88
-    end
89
-rescue Errno::ENOENT
90
-    setup_rb_error $!.message + "\n#{File.basename($0)} config first"
91
-end
92
-end
93
-
94
-if c['rubylibdir']
95
-    # V > 1.6.3
96
-    libruby         = "#{c['prefix']}/lib/ruby"
97
-    siterubyverarch = c['sitearchdir']
98
-end
99
-parameterize = lambda {|path|
100
-    path.sub(/\A#{Regexp.quote(c['prefix'])}/, '$prefix')
101
-}
102
-
103
-if arg = c['configure_args'].split.detect {|arg| /--with-make-prog=/ =~ arg }
104
-    makeprog = arg.sub(/'/, '').split(/=/, 2)[1]
105
-else
106
-    makeprog = 'make'
107
-end
108
-
109
-def setup_rb_error(msg)
110
-  raise SetupError, msg
111
-end
112
-
113
-if $0 == __FILE__
114
-  begin
115
-    ToplevelInstaller.invoke
116
-  rescue SetupError
117
-    raise if $DEBUG
118
-    $stderr.puts $!.message
119
-    $stderr.puts "Try 'ruby #{$0} --help' for detailed usage."
120
-    exit 1
121
-  end
122
-end
123
-{% endhighlight %}
124
-
125
-<h3 class="filename">syntax_test.php</h3>
126
-{% highlight php %}
127
-<?php
128
-require_once($GLOBALS['g_campsiteDir']. "/$ADMIN_DIR/country/common.php");
129
-require_once($GLOBALS['g_campsiteDir']. "/classes/SimplePager.php");
130
-camp_load_translation_strings("api");
131
-
132
-$f_country_language_selected = camp_session_get('f_language_selected', '');
133
-$f_country_offset = camp_session_get('f_country_offset', 0);
134
-if (empty($f_country_language_selected)) {
135
-	$f_country_language_selected = null;
136
-}
137
-$ItemsPerPage = 20;
138
-$languages = Language::GetLanguages(null, null, null, array(), array(), true);
139
-$numCountries = Country::GetNumCountries($f_country_language_selected);
140
-
141
-$pager = new SimplePager($numCountries, $ItemsPerPage, "index.php?");
142
-
143
-$crumbs = array();
144
-$crumbs[] = array(getGS("Configure"), "");
145
-$crumbs[] = array(getGS("Countries"), "");
146
-echo camp_html_breadcrumbs($crumbs);
147
-
148
-?>
149
-
150
-<?php  if ($g_user->hasPermission("ManageCountries")) { ?>
151
-<table BORDER="0" CELLSPACING="0" CELLPADDING="1">
152
-    <tr>
153
-        <td><a href="add.php"><?php putGS("Add new"); ?></a></td>
154
-    </tr>
155
-</table>
156
-{% endhighlight %}
157
-
158
-
159
-<h3 class="filename">syntax_test.hs</h3>
160
-{% highlight hs %}
161
-{-# LANGUAGE OverloadedStrings #-}
162
-module Main where
163
-
164
-import Control.Arrow ((>>>), (***), arr)
165
-import Control.Monad (forM_)
166
-
167
-
168
-import Hakyll
169
-
170
-
171
-main :: IO ()
172
-main = hakyll $ do
173
-
174
-    route   "css/*" $ setExtension "css"
175
-    compile "css/*" $ byExtension (error "Not a (S)CSS file")
176
-        [ (".css",  compressCssCompiler)
177
-        , (".scss", sass)
178
-        ]
179
-
180
-    route   "js/**" idRoute
181
-    compile "js/**" copyFileCompiler
182
-
183
-    route   "img/*" idRoute
184
-    compile "img/*" copyFileCompiler
185
-
186
-    compile "templates/*" templateCompiler
187
-
188
-    forM_ ["test.md", "index.md"] $ \page -> do
189
-        route   page $ setExtension "html"
190
-        compile page $ pageCompiler
191
-            >>> applyTemplateCompiler "templates/default.html"
192
-            >>> relativizeUrlsCompiler
193
-
194
-sass :: Compiler Resource String
195
-sass = getResourceString >>> unixFilter "sass" ["-s", "--scss"]
196
-                         >>> arr compressCss
197
-
198
-{% endhighlight %}
199
-
200
-<h3 class="filename">syntax_test.sh</h3>
201
-{% highlight sh %}
202
-#!/bin/bash
203
-
204
-cd $ROOT_DIR
205
-DOT_FILES="lastpass weechat ssh Xauthority"
206
-for dotfile in $DOT_FILES; do conform_link "$DATA_DIR/$dotfile" ".$dotfile"; done
207
-
208
-# TODO: refactor with suffix variables (or common cron values)
209
-
210
-case "$PLATFORM" in
211
-	linux)
212
-        #conform_link "$CONF_DIR/shell/zshenv" ".zshenv"
213
-        crontab -l > $ROOT_DIR/tmp/crontab-conflict-arch
214
-        cd $ROOT_DIR/$CONF_DIR/cron
215
-        if [[ "$(diff ~/tmp/crontab-conflict-arch crontab-current-arch)" == ""
216
-            ]];
217
-            then # no difference with current backup
218
-                logger "$LOG_PREFIX: crontab live settings match stored "\
219
-                    "settings; no restore required"
220
-                rm ~/tmp/crontab-conflict-arch
221
-            else # current crontab settings in file do not match live settings
222
-                crontab $ROOT_DIR/$CONF_DIR/cron/crontab-current-arch
223
-                logger "$LOG_PREFIX: crontab stored settings conflict with "\
224
-                    "live settings; stored settings restored. "\
225
-                    "Previous settings recorded in ~/tmp/crontab-conflict-arch."
226
-        fi
227
-    ;;
228
-
229
-{% endhighlight %}
230
-
231
-<h3 class="filename">syntax_test.py</h3>
232
-{% highlight py %}
233
-# test python (sample from offlineimap)
234
-
235
-class ExitNotifyThread(Thread):
236
-    """This class is designed to alert a "monitor" to the fact that a thread has
237
-    exited and to provide for the ability for it to find out why."""
238
-    def run(self):
239
-        global exitthreads, profiledir
240
-        self.threadid = thread.get_ident()
241
-        try:
242
-            if not profiledir:          # normal case
243
-                Thread.run(self)
244
-            else:
245
-                try:
246
-                    import cProfile as profile
247
-                except ImportError:
248
-                    import profile
249
-                prof = profile.Profile()
250
-                try:
251
-                    prof = prof.runctx("Thread.run(self)", globals(), locals())
252
-                except SystemExit:
253
-                    pass
254
-                prof.dump_stats( \
255
-                            profiledir + "/" + str(self.threadid) + "_" + \
256
-                            self.getName() + ".prof")
257
-        except:
258
-            self.setExitCause('EXCEPTION')
259
-            if sys:
260
-                self.setExitException(sys.exc_info()[1])
261
-                tb = traceback.format_exc()
262
-                self.setExitStackTrace(tb)
263
-        else:
264
-            self.setExitCause('NORMAL')
265
-        if not hasattr(self, 'exitmessage'):
266
-            self.setExitMessage(None)
267
-
268
-        if exitthreads:
269
-            exitthreads.put(self, True)
270
-
271
-    def setExitCause(self, cause):
272
-        self.exitcause = cause
273
-    def getExitCause(self):
274
-        """Returns the cause of the exit, one of:
275
-        'EXCEPTION' -- the thread aborted because of an exception
276
-        'NORMAL' -- normal termination."""
277
-        return self.exitcause
278
-    def setExitException(self, exc):
279
-        self.exitexception = exc
280
-    def getExitException(self):
281
-        """If getExitCause() is 'EXCEPTION', holds the value from
282
-        sys.exc_info()[1] for this exception."""
283
-        return self.exitexception
284
-    def setExitStackTrace(self, st):
285
-        self.exitstacktrace = st
286
-    def getExitStackTrace(self):
287
-        """If getExitCause() is 'EXCEPTION', returns a string representing
288
-        the stack trace for this exception."""
289
-        return self.exitstacktrace
290
-    def setExitMessage(self, msg):
291
-        """Sets the exit message to be fetched by a subsequent call to
292
-        getExitMessage.  This message may be any object or type except
293
-        None."""
294
-        self.exitmessage = msg
295
-    def getExitMessage(self):
296
-        """For any exit cause, returns the message previously set by
297
-        a call to setExitMessage(), or None if there was no such message
298
-        set."""
299
-        return self.exitmessage
300
-
301
-{% endhighlight %}
302
-
303
-<h3 class="filename">syntax_test.pl</h3>
304
-{% highlight perl %}
305
-#!perl -w
306
-
307
-# Time-stamp: <2002/04/06, 13:12:13 (EST), maverick, csvformat.pl>
308
-# Two pass CSV file to table formatter
309
-
310
-$delim = $#ARGV >= 1 ? $ARGV[1] : ',';
311
-print STDERR "Split pattern: $delim\n";
312
-
313
-# first pass
314
-open F, "<$ARGV[0]" or die;
315
-while(<F>)
316
-{
317
-  chomp;
318
-  $i = 0;
319
-  map { $max[$_->[1]] = $_->[0] if $_->[0] > ($max[$_->[1]] || 0) }
320
-    (map {[length $_, $i++]} split($delim));
321
-}
322
-close F;
323
-
324
-print STDERR 'Field width:   ', join(', ', @max), "\n";
325
-print STDERR join(' ', map {'-' x $_} @max);
326
-
327
-# second pass
328
-open F, "<$ARGV[0]" or die;
329
-while(<F>)
330
-  {
331
-  chomp;
332
-  $i = 0;
333
-  map { printf("%-$max[$_->[1]]s ", $_->[0]) }
334
-    (map {[$_, $i++]} split($delim));
335
-  print "\n";
336
-}
337
-close F;
338
-
339
-{% endhighlight %}
340
-
341
-<h3 class="filename">syntax_test.java</h3>
342
-{% highlight java %}
343
-import java.util.Map;
344
-import java.util.TreeSet;
345
-
346
-public class GetEnv {
347
-  /**
348
-   * let's test generics
349
-   * @param args the command line arguments
350
-   */
351
-  public static void main(String[] args) {
352
-    // get a map of environment variables
353
-    Map<String, String> env = System.getenv();
354
-    // build a sorted set out of the keys and iterate
355
-    for(String k: new TreeSet<String>(env.keySet())) {
356
-      System.out.printf("%s = %s\n", k, env.get(k));
357
-    }
358
-  }    }
359
-{% endhighlight %}
360
-
361
-<h3 class="filename">syntax_test.c</h3>
362
-{% highlight c %}
363
-#define UNICODE
364
-#include <windows.h>
365
-
366
-int main(int argc, char **argv) {
367
-  int speed = 0, speed1 = 0, speed2 = 0; // 1-20
368
-  printf("Set Mouse Speed by Maverick\n");
369
-
370
-  SystemParametersInfo(SPI_GETMOUSESPEED, 0, &speed, 0);
371
-  printf("Current speed: %2d\n", speed);
372
-
373
-  if (argc == 1) return 0;
374
-  if (argc >= 2) sscanf(argv[1], "%d", &speed1);
375
-  if (argc >= 3) sscanf(argv[2], "%d", &speed2);
376
-
377
-  if (argc == 2) // set speed to first value
378
-    speed = speed1;
379
-  else if (speed == speed1 || speed == speed2) // alternate
380
-    speed = speed1 + speed2 - speed;
381
-  else
382
-    speed = speed1;  // start with first value
383
-
384
-  SystemParametersInfo(SPI_SETMOUSESPEED, 0,  speed, 0);
385
-  SystemParametersInfo(SPI_GETMOUSESPEED, 0, &speed, 0);
386
-  printf("New speed:     %2d\n", speed);
387
-  return 0;
388
-}
389
-
390
-{% endhighlight %}
391
-
392 1
deleted file mode 100644
... ...
@@ -1,117 +0,0 @@
1
-layout: page
2
-title: Typography Testing
3
-no_sidebar: true
4
-
5
-%h1 Level 01 Heading
6
-%h2 Level 02 Heading
7
-%h3 Level 03 Heading
8
-%h4 Level 04 Heading
9
-%h5 Level 05 Heading
10
-%h6 Level 06 Heading
11
-
12
-%p
13
-  Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Fusce sodales ligula sed urna. Aliquam posuere arcu
14
-  viverra erat. Pellentesque et enim dapibus ante facilisis bibendum. Nam congue dapibus urna. Vestibulum consequat
15
-  arcu at magna. Nunc faucibus mollis lacus. Nulla tempor luctus tellus. Donec blandit lobortis pede. Vestibulum
16
-  vel pede ut urna eleifend lacinia.
17
-%p
18
-  Maecenas ligula nibh, imperdiet at, interdum eget, sagittis eu, enim. Vivamus vel urna. Donec fringilla
19
-  ullamcorper sem. In risus arcu, pellentesque cursus, faucibus cursus, consequat quis, est. Aliquam id erat.
20
-  Aliquam arcu. Phasellus vulputate. Integer sem diam, mattis vel, viverra ullamcorper, ultricies quis, nisl. Sed
21
-  sollicitudin quam ut nisi. Vivamus velit sapien, volutpat eu, faucibus id, nonummy id, urna.
22
-%p
23
-  Take it<sub>2</sub> to the power of<sup>3</sup>
24
-  Praesent iaculis pellentesque est. Nulla facilisi. Etiam fringilla vehicula orci. Aliquam fermentum ipsum id
25
-  nulla. Aliquam interdum laoreet leo. Cras accumsan. Nam pharetra diam id nunc. Integer blandit tellus vulputate
26
-  felis. Cras aliquam, eros in euismod aliquam, enim nisl mollis metus, quis fringilla ipsum diam ut pede. Mauris a
27
-  libero ac velit interdum pulvinar. Nunc ipsum mauris, semper rhoncus, feugiat ut, egestas id, diam. Nullam
28
-  porttitor condimentum risus. Vivamus nec enim eget nisi commodo euismod. Ut turpis. Nullam malesuada rutrum
29
-  neque. Nam sodales porta elit. Mauris mollis nisl vel augue.
30
-
31
-%p
32
-  And we were like <q>Woah</q>, and he was like <q>Woah</q>, and they were like <q>WOAH!</q>
33
-
34
-%p
35
-  %abbr(title="For The Win!") FTW!
36
-%p
37
-
38
-%h3 Unordered lists
39
-%ul
40
-  %li Lorem ipsum dolor sit amet
41
-  %li Consectetur adipisicing elit
42
-  %li Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua
43
-  %li Ut enim ad minim veniam
44
-
45
-%h3 Ordered lists
46
-%ol
47
-  %li Consectetur adipisicing elit
48
-  %li Sed do eiusmod tempor incididunt ut labore
49
-  %li Et dolore magna aliqua
50
-
51
-%h3 Blockquotes
52
-%blockquote
53
-  %p
54
-    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore
55
-    magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
56
-    consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
57
-    Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
58
-
59
-%h3 Tables
60
-%table
61
-  %caption
62
-    Jimi Hendrix - albums
63
-    %thead
64
-      %tr
65
-        %th Album
66
-        %th Year
67
-        %th Price
68
-    %tfoot
69
-      %tr
70
-        %td Album
71
-        %td Year
72
-        %td Price
73
-    %tbody
74
-      %tr
75
-        %td Are You Experienced
76
-        %td 1967
77
-        %td $10.00
78
-      %tr
79
-        %td Axis: Bold as Love
80
-        %td 1967
81
-        %td $12.00
82
-      %tr
83
-        %td Electric Ladyland
84
-        %td 1968
85
-        %td $10.00
86
-      %tr
87
-        %td Band of Gypsys
88
-        %td 1970
89
-        %td $12.00
90
-%p
91
-  %a(href="#")Link
92
-  %br/
93
-  %strong &lt;strong&gt;
94
-  %br/
95
-  %del &lt;del&gt; deleted
96
-  %br/
97
-  %dfn &lt;dfn&gt; dfn
98
-  %br/
99
-  %em &lt;em&gt; emphasis
100
-  %br/
101
-
102
-%pre
103
-  %code
104
-    &lt;html&gt;
105
-    &lt;head&gt;
106
-    &lt;/head&gt;
107
-    &lt;body&gt;
108
-    &lt;div class = "main"&gt; &lt;div&gt;
109
-    &lt;/body&gt;
110
-    &lt;/html&gt;
111
-
112
-%tt
113
-  &lt;tt&gt;
114
-  Pellentesque tempor, dui ut ultrices viverra, neque urna blandit nisi, id accumsan dolor est vitae risus.
115
-%hr