<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
| //atmosphere packages: jparker:crypto-aes , matb33:collection-hooks | |
| var encryptionKey = "adsffe534tryertrrtweGe"; | |
| //Before insert Hooks, I decide to use it only in the server. If you use on the client and server, you're encrypting it twice. | |
| Todos.before.insert( function( userId , doc ){ | |
| doc.text = CryptoJS.AES.encrypt( doc.text , encryptionKey ).toString(); | |
| } ); |
| var CryptoJS = require("crypto-js");//replace thie with script tag in browser env | |
| //encrypt | |
| var rawStr = "hello world!"; | |
| var wordArray = CryptoJS.enc.Utf8.parse(rawStr); | |
| var base64 = CryptoJS.enc.Base64.stringify(wordArray); | |
| console.log('encrypted:', base64); | |
| //decrypt | |
| var parsedWordArray = CryptoJS.enc.Base64.parse(base64); |
| <?php | |
| add_action( 'wp_enqueue_scripts', 'enqueue_my_styles' ); | |
| /** | |
| * Example callback function that demonstrates how to properly enqueue conditional stylesheets in WordPress for IE. | |
| * IE10 and up does not support conditional comments in standards mode. | |
| * | |
| * @uses wp_style_add_data() WordPress function to add the conditional data. | |
| * @link https://developer.wordpress.org/reference/functions/wp_style_add_data/ |
| Choose a ticket class: <select id="tickets"></select> | |
| <p id="ticketOutput"></p> | |
| <script id="ticketTemplate" type="text/x-jquery-tmpl"> | |
| {{if chosenTicket}} | |
| You have chosen <b>${ chosenTicket().name }</b> | |
| ($${ chosenTicket().price }) | |
| <button data-bind="click: resetTicket">Clear</button> | |
| {{/if}} |
| //------------------------------------------------------------------------------ | |
| // JavaScript function tracer for "classes" | |
| //------------------------------------------------------------------------------ | |
| // from: pmuellr@muellerware.org | |
| // home: http://gist.github.com/189144 | |
| //------------------------------------------------------------------------------ | |
| //------------------------------------------------------------------------------ | |
| // define our function tracer | |
| //------------------------------------------------------------------------------ |