This repository has been archived by the owner on Mar 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Build): External markup support
- Loading branch information
Showing
31 changed files
with
166 additions
and
373 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
{ | ||
"port": 8000, | ||
"assetsPath": "../my-jquery-plugins-assets/", | ||
"githubUsername": "martinmethod", | ||
"analytics": "UA-4977149-10" | ||
"analytics": "UA-4977149-10", | ||
"pluginStyles": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<h3>I. General initialization</h3> | ||
|
||
<p align="center"> | ||
<em class="stickme">I am just a simple note.</em> | ||
</p> | ||
|
||
<div class="example basic-init"> | ||
<p>This note above have<strong>"stickme"</strong> class which is the plugin's target by default. It will stick on the top of the viewport when initialize<strong>StickMe</strong> | ||
in the most basic way: | ||
<pre class=" language-javascript"><code class="javascript language-javascript">// like this | ||
$.stickme(); | ||
// or like this | ||
var stickedItems = $.stickme();</code></pre> | ||
</p> | ||
|
||
<input class="btn" id="btn-basic-init" type="button" value="Assign StickMe and scroll to check the result"/> | ||
</div> | ||
|
||
<div class="example basic-destroy"> | ||
<p>Now they can be unsticked by triggering the destroy method: | ||
<pre class=" language-javascript"><code class="javascript language-javascript">// like this | ||
$.stickme().destroy(); | ||
// or like this | ||
stickedItems.destroy();</code></pre> | ||
</p> | ||
|
||
<input class="btn" id="btn-basic-destroy" type="button" value="Destroy StickMe and scroll to check the result"/> | ||
</div> | ||
|
||
<h3>II. Method initialization</h3> | ||
|
||
<p align="center"> | ||
<em id="method-note">I am a static note.</em> | ||
</p> | ||
|
||
<div class="example method-init"> | ||
<p>This note above has an ID called<strong>"method-note"</strong> | ||
and we will use that name for the jQuery selector. We would like to stick the note 10px under the top of the viewport when it hits that position and also to change its text and background color in the context of its position mode. | ||
<pre class=" language-javascript"><code class="javascript language-javascript">$('#method-note').stickme({ | ||
top: 10, | ||
}).bind('onStick', function() { | ||
$(this) | ||
.addClass('orange') | ||
.text('I am a fixed note.'); | ||
}).bind('onUnstick', function() { | ||
$(this) | ||
.removeClass('orange') | ||
.text('I am a static note.'); | ||
});</code></pre> | ||
</p> | ||
|
||
<input class="btn" id="btn-method-init" type="button" value="Assign StickMe and scroll to check the result"/> | ||
</div> |
Oops, something went wrong.