This file contains hidden or 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
| var password = "Mypassword01"; | |
| var regexString = "^((?=.{8,}$)(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).*|(?=.{8,}$)(?=.*\d)(?=.*[a-zA-Z])(?=.*[!\u0022#$%&'()*+,./:;⇔?@[\]\^_`{|}~-]).*)"; | |
| var regexx = new RegExp(regexString); | |
| if (!regexx.test(password)) { | |
| // password did not match regex | |
| } |
This file contains hidden or 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
| $(document).ready(function () { | |
| $('#email').bind("paste", function (e) { | |
| e.preventDefault(); | |
| }); | |
| }); |
This file contains hidden or 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
| <input type="radio" name="myGroup" value="1" ng-model="cbSelection"/> Checkbox 1 | |
| <input type="radio" name="myGroup" value="2" ng-model="cbSelection"/> Checkbox 2 |
This file contains hidden or 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
| <input | |
| type="checkbox" | |
| name="membersListSelection[]" | |
| value="{{i.MemberNumber}}" | |
| ng-checked="filterData.membersListSelection.indexOf(i.MemberNumber) > -1" | |
| ng-click="toggleMembersListSelection(i.MemberNumber)" | |
| > |
This file contains hidden or 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
| $(document).ready(function(){ | |
| $("#MyField").inputmask("999-999-999"); | |
| $("#OtherField").inputmask("999a"); | |
| }); |
This file contains hidden or 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
| var addressChanges = request.AddressChangesRequired; | |
| if (addressChanges.Any()) | |
| { | |
| var tasks = new List<Task>(); | |
| foreach (var addressChange in addressChanges) | |
| { | |
| var memberNumber = addressChange.MemberNumber; | |
| var address = addressChange.Address; |
This file contains hidden or 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
| app.factory('LoginProvider', function ($resource) { | |
| return $resource('/api/login/:id', { id: '@id' }, | |
| { 'save': { method: 'POST', headers: { 'X-XSRF-Token': angular.element('input[name="__RequestVerificationToken"]').attr('value') } } }); | |
| }); | |
| app.factory('OtherProvider', function ($resource) { | |
| return $resource('/api/OtherProvider/:id', { id: '@id' }, | |
| {'get': { method: 'GET', headers: { 'X-XSRF-Token': angular.element('input[name="__RequestVerificationToken"]').attr('value') } }}); | |
| }); |
This file contains hidden or 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
| protected void rptMenuParent_OnItemDataBound(object sender, RepeaterItemEventArgs e) | |
| { | |
| var row = (TopMenu)e.Item.DataItem; | |
| Repeater nestedRepeater = e.Item.FindControl("rptMenuChild") as Repeater; | |
| nestedRepeater.DataSource = row.Children; | |
| nestedRepeater.DataBind(); | |
| } | |
| protected void Page_Load(object sender, EventArgs e) |
This file contains hidden or 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
| Item currentItem = Sitecore.Context.Item; // Current sitecore item | |
| BreadCrumbs.Current = currentItem.Fields["Title"].ToString(); // set current items title on breadcrumb object | |
| currentItem = currentItem.Parent; // go to parent of current item | |
| while (currentItem.ID != new ID(Items.ContentRootItem)) | |
| { | |
| // add parent item to breadcrumb object (a list of parent items) | |
| BreadCrumbs.Parents.Add(new Common.MenuItem | |
| { | |
| Link = Sitecore.Links.LinkManager.GetItemUrl(currentItem), |
This file contains hidden or 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
| <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
| <sitecore> | |
| <contentSearch> | |
| <configuration type="Sitecore.ContentSearch.ContentSearchConfiguration, Sitecore.ContentSearch"> | |
| <indexes hint="list:AddIndex"> | |
| <!-- Change this to Sitecore.ContentSearch.LuceneProvider.SwitchOnRebuildLuceneIndex, Sitecore.ContentSearch.LuceneProvider if you would like indexes to be | |
| built in a temporary directory i.e. while rebuilding is happening, your old indexes work like normal until the rebuild is finished. --> | |
| <index id="CustomSearch" type="Sitecore.ContentSearch.LuceneProvider.LuceneIndex, Sitecore.ContentSearch.LuceneProvider"> | |
| <param desc="name">$(id)</param> | |
| <param desc="folder">$(id)</param> |