Skip to content

Commit f8f9a63

Browse files
committed
Support changes from gh-pages, css custom notification folder, and new index.html with .gitignore
1 parent 0f5fef7 commit f8f9a63

File tree

3 files changed

+51
-17
lines changed

3 files changed

+51
-17
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.DS_Store
2+

css/styles/alert-bangtidy.css

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/**
2+
* bangTidy2 Style - Ported from Growl Style
3+
* Ported By Nijikokun @vizualover @nijikokun
4+
* Original Author Daryl Ginn
5+
* Based On http://dribbble.com/shots/527056-Growl-Theme-2
6+
*
7+
* To use, for style use: bangTidy
8+
*
9+
*/
10+
.alert-bangTidy {
11+
background-color: transparent;
12+
background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.80), rgba(0, 0, 0, 0.88));
13+
border: 1px solid #000;
14+
box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), inset 0 0 0 1px rgba(255,255,255,0.1);
15+
-webkit-border-radius: 4px;
16+
overflow: hidden;
17+
color: white;
18+
-webkit-text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.2);
19+
-moz-text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.2);
20+
-o-text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.2);
21+
text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.2);
22+
-webkit-font-smoothing: antialiased;
23+
}

examples/basic.html renamed to examples/index.html

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,26 @@
2525
<div class="span3">
2626
<div class="span12">&nbsp;</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">&nbsp;</div>
3338
<div class="span12">&nbsp;</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

Comments
 (0)