Permalink
Browse files

Simple content changes in scrabook

  • Loading branch information...
1 parent 12f1795 commit 97b41adb906d1f8e5cd27e6208407e80750adf10 @equivalent committed Mar 21, 2013
Showing with 28 additions and 0 deletions.
  1. +4 −0 wisdom_inside/other/readed_articles
  2. +24 −0 wisdom_inside/scraps2/js
@@ -1,4 +1,8 @@
+http://blog.paciellogroup.com/2012/05/html5-accessibility-chops-hidden-and-aria-hidden/
+http://www.w3.org/TR/wai-aria/states_and_properties
+
http://railscasts.com/episodes/221-subdomains-in-rails-3
+http://blog.applegrew.com/2011/12/access-ext3ext2-file-system-on-mac-osx-lion-10-7/
http://www.pogoapp.com/blog/posts/websockets-on-rails-4-and-ruby-2?utm_source=rubyweekly&utm_medium=email (in pocket)
http://www.bluebox.net/about/blog/2013/02/using-regular-expressions-in-ruby-part-1-of-3/?utm_source=rubyweekly&utm_medium=email (in pocket)
View
@@ -0,0 +1,24 @@
+
+
+
+# Get url variables
+
+ #app/assets/javascript/app.coffee
+ $(document).ready ->
+ window.getQueryVariable = (variable) ->
+ query = window.location.search.substring(1)
+ vars = query.split("&")
+ i = 0
+
+ while i < vars.length
+ pair = vars[i].split("=")
+ return pair[1] if pair[0] is variable
+ i++
+ false
+
+usage:
+
+ if getQueryVariable('document_name_id') == '14'
+
+from http://css-tricks.com/snippets/javascript/get-url-variables/
+keys: get url variables

0 comments on commit 97b41ad

Please sign in to comment.