Skip to content

Instantly share code, notes, and snippets.

View pridemusvaire's full-sized avatar
🎯
Focusing

Pride Musvaire pridemusvaire

🎯
Focusing
View GitHub Profile
@pridemusvaire
pridemusvaire / handlebars-helpers-templates.html
Created October 10, 2016 13:17 — forked from amitkumar/handlebars-helpers-templates.html
Useful Handlebars Helpers. Get specific array item, if equals filter
<script id="if_equals_example" type="text/x-handlebars-template">
{{#if_equals objectType 'message'}}
<div class="message">
Message
</div>
{{else}}
{{/if_equals}}
</script>
@pridemusvaire
pridemusvaire / SP2010_create_list_item.html
Created July 13, 2017 19:50 — forked from havana59er/SP2010_create_list_item.html
Create a new list item in SharePoint 2010 using javascript
<div>
<label for="myAnnouncement">Announcement</label>
<input id="myAnnouncement" type="text" /><br />
<input type="button" value="Post Announcement" />
</div>
<script type="text/javascript" >
// Use this to delay execution until the file sp.js has loaded. Also a good way to keep your context free of globals.
ExecuteOrDelayUntilScriptLoaded(function() {
// get announcement text