PHP Classes

File: app/javascript/global.js

Recommend this page to a friend!
  Classes of Laudir Bispo   PHP Real Estate Website   app/javascript/global.js   Download  
File: app/javascript/global.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Real Estate Website
Manage the properties of a real estate business
Author: By
Last change:
Date: 3 years ago
Size: 648 bytes
 

Contents

Class file image Download
'use strict'; /* * Neste js somente funções sem ligações com outras classes */ var generateUniqueId, playAudio; generateUniqueId = function() { var ts = +new Date(); var tsStr = ts.toString(); var arr = tsStr.split(''); var rev = arr.reverse(); var filtered = rev; return filtered.join(''); }; playAudio = function(soundUrl) { var audioElement = document.createElement('audio'); audioElement.setAttribute('src', soundUrl); audioElement.setAttribute('autoplay', 'autoplay'); //audioElement.load() $.get(); audioElement.addEventListener("load", function() { audioElement.play(); }); };