buktiin 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/widget.iife.js +13 -0
- package/package.json +31 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
(function(){"use strict";function a(n){const e=document.createElement("div");e.innerText=n,e.style.cssText=`
|
|
2
|
+
position: fixed;
|
|
3
|
+
bottom: 20px;
|
|
4
|
+
left: 20px;
|
|
5
|
+
background: #ffffff;
|
|
6
|
+
color: #333;
|
|
7
|
+
padding: 12px 16px;
|
|
8
|
+
border-radius: 10px;
|
|
9
|
+
box-shadow: 0 4px 14px rgba(0,0,0,.15);
|
|
10
|
+
font-size: 14px;
|
|
11
|
+
z-index: 9999;
|
|
12
|
+
max-width: 280px;
|
|
13
|
+
`,document.body.appendChild(e),setTimeout(()=>{e.remove()},4e3)}const o={messages:["Undangan Andi & Rina baru saja dibuat 💍","Pasangan dari Bandung baru saja mendaftar","Template 'Elegant Gold' sedang populer"],delay:3e3,interval:8e3};function i(){return{...o,...window.SocialProofConfig||{}}}(function(){const n=i();let e=0;function t(){a(n.messages[e%n.messages.length]),e++}setTimeout(()=>{t(),setInterval(t,n.interval)},n.delay)})()})();
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "buktiin",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Social proof app to improve convertion rate",
|
|
5
|
+
"main": "dist/widget.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"scripts": {
|
|
10
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
11
|
+
"dev": "vite",
|
|
12
|
+
"build": "vite build"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/miqbals17/social-proof-app.git"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"social-proof-app"
|
|
20
|
+
],
|
|
21
|
+
"author": "",
|
|
22
|
+
"license": "ISC",
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/miqbals17/social-proof-app/issues"
|
|
25
|
+
},
|
|
26
|
+
"homepage": "https://github.com/miqbals17/social-proof-app#readme",
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"typescript": "^5.9.3",
|
|
29
|
+
"vite": "^7.3.0"
|
|
30
|
+
}
|
|
31
|
+
}
|