2525 < div class ="span3 ">
2626 < div class ="span12 "> </ div >
2727
28- < div class ="span12 ">
29- < a href ="https://github.com/Nijikokun/bootstrap-notify " class ='btn '> Fork On Github</ a >
28+ < div class ="span3 ">
29+ < iframe src ="http://nijikokun.github.com/github-buttons/github-btn.html?user=Nijikokun&repo=bootstrap-notify&type=watch&count=true " allowtransparency ="true " frameborder ="0 " scrolling ="0 " width ="110px " height ="20px "> </ iframe >
30+ < iframe src ="http://nijikokun.github.com/github-buttons/github-btn.html?user=Nijikokun&repo=bootstrap-notify&type=fork&count=true " allowtransparency ="true " frameborder ="0 " scrolling ="0 " width ="110px " height ="20px "> </ iframe >
31+
32+ < br />
33+
34+ < a href ="https://twitter.com/share " class ="twitter-share-button " data-via ="vizualover " data-related ="nijikokun " data-hashtags ="twitterextensions "> Tweet</ a >
3035 </ div >
3136
3237 < div class ="span12 "> </ div >
3338 < div class ="span12 "> </ div >
3439
3540 < div class ="span12 ">
36- < button class ='btn btn-warning show-notification '> Click For A Notification</ button >
41+ < button class ='btn btn-warning show-notification '> Click For A Random Notification</ button >
3742 </ div >
3843
3944 < div class ='notifications top-right '> </ div >
45+ < div class ='notifications bottom-right '> </ div >
46+ < div class ='notifications top-left '> </ div >
47+ < div class ='notifications bottom-left '> </ div >
4048 </ div >
4149 < div class ="span9 ">
4250 < div class ='page-header '>
@@ -89,9 +97,8 @@ <h5>Position Options:</h5>
8997 < h4 > Js:</ h4 >
9098
9199< pre class ='prettyprint '>
92- $('.notifications').notify({
93- message: { text: message[1] },
94- type: message[0]
100+ $('.top-left').notify({
101+ message: { text: 'Aw yeah, It works!' }
95102 }).show(); // for the ones that aren't closable and don't fade out there is a .close() function.
96103</ pre >
97104
@@ -111,7 +118,7 @@ <h5>Options:</h5>
111118 < td > type</ td >
112119 < td > string</ td >
113120 < td > 'success'</ td >
114- < td > Alert style, emit < code > alert-</ code > from style name.</ td >
121+ < td > Alert style, omit < code > alert-</ code > from style name.</ td >
115122 </ tr >
116123 < tr >
117124 < td > closable</ td >
@@ -164,6 +171,7 @@ <h5>Options:</h5>
164171
165172 <!-- Le javascript
166173 ================================================== -->
174+ < script > ! function ( d , s , id ) { var js , fjs = d . getElementsByTagName ( s ) [ 0 ] ; if ( ! d . getElementById ( id ) ) { js = d . createElement ( s ) ; js . id = id ; js . src = "//platform.twitter.com/widgets.js" ; fjs . parentNode . insertBefore ( js , fjs ) ; } } ( document , "script" , "twitter-wjs" ) ; </ script >
167175 <!-- Placed at the end of the document so the pages load faster -->
168176 < script src ="http://twitter.github.com/bootstrap/assets/js/jquery.js "> </ script >
169177 < script src ="http://twitter.github.com/bootstrap/assets/js/google-code-prettify/prettify.js "> </ script >
@@ -173,13 +181,13 @@ <h5>Options:</h5>
173181 < script >
174182 // Random Messages
175183 var messages = [
176- [ 'info' , 'Gah this is awesome.' ] ,
177- [ 'success' , 'I love Nijiko, he is my creator' ] ,
178- [ 'warning' , 'Soda is bad.' ] ,
179- [ 'danger' , "I'm sorry dave, I'm afraid I can't let you do that." ] ,
180- [ 'info' , "There are only three rules." ] ,
181- [ 'inverse' , 'Do you hear me now?' ] ,
182- [ 'info' , 'You should fork this!' ]
184+ [ 'bottom-right' , ' info', 'Gah this is awesome.' ] ,
185+ [ 'top-right' , ' success', 'I love Nijiko, he is my creator. ' ] ,
186+ [ 'bottom-left' , ' warning', 'Soda is bad.' ] ,
187+ [ 'bottom-left' , ' danger', "I'm sorry dave, I'm afraid I can't let you do that." ] ,
188+ [ 'bottom-right' , ' info', "There are only three rules." ] ,
189+ [ 'top-right' , ' inverse', 'Do you hear me now?' ] ,
190+ [ 'bottom-left' , ' info', 'You should fork this!' ]
183191 ] ;
184192
185193 // Pretty print
@@ -188,9 +196,10 @@ <h5>Options:</h5>
188196 // Basic Features, style isn't even required.
189197 $ ( '.show-notification' ) . click ( function ( e ) {
190198 var message = messages [ Math . floor ( Math . random ( ) * messages . length ) ] ;
191- $ ( '.notifications' ) . notify ( {
192- message : { text : message [ 1 ] } ,
193- type : message [ 0 ]
199+
200+ $ ( '.' + message [ 0 ] ) . notify ( {
201+ message : { text : message [ 2 ] } ,
202+ type : message [ 1 ]
194203 } ) . show ( ) ;
195204 } ) ;
196205 </ script >
0 commit comments