Starting Foundation automation
This commit is contained in:
BIN
roles/Foundation/files/custom/public/adhan/AdhanIcon.png
Executable file
BIN
roles/Foundation/files/custom/public/adhan/AdhanIcon.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
13
roles/Foundation/files/custom/public/adhan/adhan.js
Executable file
13
roles/Foundation/files/custom/public/adhan/adhan.js
Executable file
@@ -0,0 +1,13 @@
|
||||
// Thanks to https://stackoverflow.com/questions/31060722/cordova-refuse-to-execute-inline-event-handler-because-it-violates-the-followi
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
document.querySelector('img').addEventListener('click', clickHandler);
|
||||
main();
|
||||
});
|
||||
|
||||
function clickHandler(element) {
|
||||
document.getElementById("adhan").play();
|
||||
}
|
||||
|
||||
function main() {
|
||||
}
|
BIN
roles/Foundation/files/custom/public/adhan/adhan.mp3
Executable file
BIN
roles/Foundation/files/custom/public/adhan/adhan.mp3
Executable file
Binary file not shown.
28
roles/Foundation/files/custom/public/adhan/index.php
Executable file
28
roles/Foundation/files/custom/public/adhan/index.php
Executable file
@@ -0,0 +1,28 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>AniNIX::Adhan \\ Call to prayer</title>
|
||||
<link rel="icon" type="image/png" href="/adhan/AdhanIcon.png">
|
||||
<link rel='apple-touch-icon' sizes='180x180' href='/adhan/AdhanIcon.png' />
|
||||
<script src="/adhan/adhan.js" type="text/javascript"></script>
|
||||
<meta name='apple-mobile-web-app-capable' content='yes' />
|
||||
</head>
|
||||
|
||||
<body bgcolor="#000">
|
||||
<center>
|
||||
<p style="color: #AAA;">Click to play</p>
|
||||
<!--image-->
|
||||
<img src="./subhanallah.jpg" style="width:auto; height:100%" id="adhanimg" />
|
||||
<!-- HTML5/back compatibility for desktops -->
|
||||
<audio id=adhan>
|
||||
<source src="./adhan.mp3" type="audio/mpeg">
|
||||
<object>
|
||||
<param name="autostart" value="false">
|
||||
<param name="src" value="./adhan.mp3">
|
||||
<param name="autoplay" value="false">
|
||||
<param name="controller" value="false">
|
||||
<embed src="./adhan.mp3" controller="false" autoplay="false" autostart="false" type="audio/mpeg"></embed>
|
||||
</object>
|
||||
</audio>
|
||||
</center>
|
||||
</body>
|
||||
</html>
|
BIN
roles/Foundation/files/custom/public/adhan/subhanallah.jpg
Executable file
BIN
roles/Foundation/files/custom/public/adhan/subhanallah.jpg
Executable file
Binary file not shown.
After Width: | Height: | Size: 73 KiB |
Reference in New Issue
Block a user