mirror of
https://gitlab.com/JKANetwork/CheckServer.git
synced 2026-02-23 13:33:47 +01:00
Start again
This commit is contained in:
17
vendors/pnotify/libtests/browserify/index.html
vendored
Normal file
17
vendors/pnotify/libtests/browserify/index.html
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Browserify Test</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="../../src/pnotify.css">
|
||||
<link rel="stylesheet" href="../../src/pnotify.brighttheme.css">
|
||||
<script type="text/javascript" src="bundle.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div style="padding: 50vh 0; text-align: center;">
|
||||
<button id="button1">Test PNotify with Browserify</button><br>
|
||||
<button id="button2">PNotify Module with Browserify</button>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
26
vendors/pnotify/libtests/browserify/index.js
vendored
Normal file
26
vendors/pnotify/libtests/browserify/index.js
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
// Not working? Did you `npm install` `npm run build` first?
|
||||
|
||||
var $ = require("jquery");
|
||||
var PNotify = require("pnotify");
|
||||
|
||||
$(function(){
|
||||
$("#button1").click(function(){
|
||||
new PNotify({
|
||||
title: "Yay!",
|
||||
text: "It works!"
|
||||
});
|
||||
});
|
||||
|
||||
$("#button12").click(function(){
|
||||
require("pnotify.reference");
|
||||
|
||||
new PNotify({
|
||||
title: "Yay!",
|
||||
text: "It works!",
|
||||
reference: {
|
||||
put_thing: true
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
20
vendors/pnotify/libtests/browserify/package.json
vendored
Normal file
20
vendors/pnotify/libtests/browserify/package.json
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "pnotify-test-browserify",
|
||||
"version": "0.0.0",
|
||||
"description": "Just a test.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"build": "browserify index.js -o bundle.js"
|
||||
},
|
||||
"author": "",
|
||||
"license": "none",
|
||||
"dependencies": {
|
||||
"jquery": "~2.1.4",
|
||||
"pnotify": "~2.2.0"
|
||||
},
|
||||
"browser": {
|
||||
"pnotify": "../../src/pnotify.js",
|
||||
"pnotify.reference": "../../src/pnotify.reference.js"
|
||||
}
|
||||
}
|
||||
45
vendors/pnotify/libtests/requirejs/index.html
vendored
Normal file
45
vendors/pnotify/libtests/requirejs/index.html
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>RequireJS Test</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="../../src/pnotify.css">
|
||||
<link rel="stylesheet" href="../../src/pnotify.brighttheme.css">
|
||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.22/require.js"></script>
|
||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../src/pnotify.js"></script>
|
||||
<script type="text/javascript" src="../../src/pnotify.reference.js"></script>
|
||||
<script type="text/javascript">
|
||||
requirejs(['jquery', 'pnotify'], function($, PNotify){
|
||||
$(function(){
|
||||
$("#button1").click(function(){
|
||||
new PNotify({
|
||||
title: "Yay!",
|
||||
text: "It works!"
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
requirejs(['jquery', 'pnotify', 'pnotify.reference'], function($, PNotify){
|
||||
$(function(){
|
||||
$("#button2").click(function(){
|
||||
new PNotify({
|
||||
title: "Yay!",
|
||||
text: "It works!",
|
||||
reference: {
|
||||
put_thing: true
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div style="padding: 50vh 0; text-align: center;">
|
||||
<button id="button1">Test PNotify with RequireJS</button><br>
|
||||
<button id="button2">PNotify Module with RequireJS</button>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user