Monthly Archive: December 2018

Sharepoint : Timeline with zoom

Events Timeline to manage events and rooms / ressources inside sharepoint website … I can adapt this timeline to many situations. Timelines are perfect for telling stories and visualizing processes. You can use a...

Make SP.SOD.executeFunc and SP.ClientContext Function Properly In SharePoint Online

Running the code above with a proper function implementation in executeOrDelayUntilScriptLoaded will work 100% of the time. <script src=”https://code.jquery.com/jquery-3.3.1.min.js”></script> SP.SOD.executeFunc(‘sp.js’, ‘SP.ClientContext’, function () { console.log(“Initiating SP.ClientContext”) }); SP.SOD.executeOrDelayUntilScriptLoaded(someFunction,”sp.js”);

Sharepoint : Changing date format using javascript

I would recommend to use : Moment.js library (link) Format Dates moment().format(‘MMMM Do YYYY, h:mm:ss a’); // December 6th 2018, 11:55:15 am moment().format(‘dddd’); // Thursday moment().format(“MMM Do YY”); // Dec 6th 18 moment().format(‘YYYY [escaped]...

Sharepoint Page reloaded when I click the button

I used following accordion code, But my page reload or refresh when i click it. <h2>IT Teams</h2> Click on the buttons to open the collapsible content. <button class=”accordion”>USA</button> <div class=”panel”> Jose Andrew Edward Gee...