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
| string _PropertyNameAttributeIsAppliedTo; | |
| string _filePath; | |
| public CustomDate([CallerMemberName]string propertyName = null, [CallerFilePath] string filePath = null) // gets the property name | |
| { | |
| _PropertyNameAttributeIsAppliedTo = propertyName; | |
| _filePath = filePath; // //Returns full path of the calling class | |
| } |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.ComponentModel.DataAnnotations; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using Microsoft.AspNetCore.Mvc.ModelBinding.Validation; | |
| using Microsoft.Extensions.Localization; | |
| [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = false)] |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.ComponentModel.DataAnnotations; | |
| using System.Globalization; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Text.RegularExpressions; | |
| using System.Threading.Tasks; | |
| using Microsoft.AspNetCore.Mvc.ModelBinding.Validation; | |
| using Microsoft.Extensions.Localization; |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.ComponentModel.DataAnnotations; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using Microsoft.AspNetCore.Mvc; | |
| using Microsoft.AspNetCore.Mvc.ModelBinding.Validation; | |
| using Microsoft.AspNetCore.Mvc.Rendering; |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Globalization; | |
| using System.Linq; | |
| using System.Threading.Tasks; | |
| using Microsoft.AspNetCore.Builder; | |
| using Microsoft.AspNetCore.Hosting; | |
| using Microsoft.AspNetCore.HttpsPolicy; | |
| using Microsoft.AspNetCore.Localization; | |
| using Microsoft.AspNetCore.Mvc.Razor; |
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
| @model JobApplication | |
| @using System.Globalization | |
| @inject IStringLocalizer<SharedResource> loc | |
| @{ | |
| Layout = "_Layout"; | |
| ViewData["Title"] = "Job Application"; | |
| } | |
| <h2>Job Application</h2> |
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
| // ******************************************* Main.js ******************************************************** | |
| // Make sure sw are supported | |
| if ('serviceWorker' in navigator) { | |
| window.addEventListener('load', () => { | |
| navigator.serviceWorker.register('../sw_cached_pages.js') // register the serviceWorker | |
| .then(reg => console.log('Service Worker: Registered (Pages)')) | |
| .catch(err => console.log(`Service Worker: Error: ${err}`)); | |
| }); | |
| } |
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
| // *************************** Main.js ********************************** | |
| var worker = new Worker('/Scripts/fileupload.js'); // fileupload.js is our webworker script file | |
| worker.onmessage = (e) => { // called when ww calls self.postMessage | |
| console.log(e.data); | |
| }; | |
| worker.onerror = (e) => { // onerror | |
| console.log('ERROR: Line ', e.lineno, ' in ', e.filename, ': ', e.message); | |
| } |
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
| // **************************************** HTML ***************************************************** | |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title></title> | |
| </head> | |
| <body> |