Tiny MCE Editor

TinyMCE Editor https://www.tiny.cloud/blog/ Latest versions(4+) ask for "Your Tiny API Key" Demo with version 3.4 Your API Key is a unique token that links your TinyMCE instances to your account. It grants you access to the Premium Features that you are subscribed to. To get Key word Register or Login Simplest Usage <!DOCTYPE html> <html>…

HTML DOCX

html-docx-js Demo with TinyMCE v3.5 This is a very small library that is capable of converting HTML documents to DOCX format thatis used by Microsoft Word 2007 and onward. It manages to perform the conversion in the browser byusing a feature called ‘altchunks’. In a nutshell, it allows embedding content in a different markuplanguage. We…

Syntax highlighting in Blogspot

At times you may want to add code in blogspot(http://www.blogger.com). It can be done with the following steps PS:There are many other similar services. Google "Syntax highlighting in Blogspot" to get an entire list Steps Visit code highlighter : http://ajblk.github.io/SyntaxHighlightGenerator-v3.0/OnlineGenerator.html Paste the code, select "language" & "code" Click "Get Formatted HTML" Preview Code Add External…

HTML Page with Google App Script

To add an HTML file to your Apps Script project, follow these steps: https://developers.google.com/apps-script/guides/html Open the Apps Script editor. At the left, click Add a file add > HTML. <!DOCTYPE html> <html> <head> <base target="_top"> <script> function readSSContents() { //simply call a funcion in script var ssContents = google.script.run.myFunction() } function onSuccess(numUnread) { var div…

Insert, Update and Delete with Google App Script

function insert_value(request,sheet){ var id = request.parameter.id; var country = request.parameter.name; var flag=1; var lr= sheet.getLastRow(); for(var i=1;i<=lr;i++){ var id1 = sheet.getRange(i, 2).getValue(); if(id1==id){ flag=0; var result="Id already exist.."; } } //add new row with recieved parameter from client if(flag==1){ var d = new Date(); var currentTime = d.toLocaleString(); var rowData = sheet.appendRow([currentTime,id,country]); var result="Insertion successful";…

Finding and replacing text with PHPWord

Finding and replacing text with PHPWord https://stackoverflow.com/a/20220205 PHPWord is only intented to create docx files. Anyhow, a docx file is simply a collection of xml files in a zip container. In general what you need to do is: Rename xxx.docx to xxx.zip Unzip to a temporary folder In temporary_folder_from_unzipped_doc/word read in document.xml which contains all…

Modal with Materialize

https://materializecss.com/modals.html HTML <!– Modal Trigger –> <a class="waves-effect waves-light btn modal-trigger" href="#modal1">Modal</a> <!– Modal Structure –> <div id="modal1" class="modal"> <div class="modal-content"> <h4>Modal Header</h4> <p>A bunch of text</p> </div> <div class="modal-footer"> <a href="#!" class="modal-close waves-effect waves-green btn-flat">Agree</a> </div> </div> JS document.addEventListener('DOMContentLoaded', function() { var elems = document.querySelectorAll('.modal'); var instances = M.Modal.init(elems, options); }); // Or with…

Fixed Cards in Materialize

Basic Example https://materializecss.com/cards.html <div class="row"> <div class="col s12 m6"> <div class="card blue-grey darken-1"> <div class="card-content white-text"> <span class="card-title">Card Title</span> <p>I am a very simple card. I am good at containing small bits of information. I am convenient because I require little markup to use effectively.</p> </div> <div class="card-action"> <a href="#">This is a link</a> <a href="#">This…