15/01/2024, 16:20
This commit is contained in:
75
README.md
75
README.md
@@ -7,16 +7,21 @@
|
|||||||
|
|
||||||
<h2>1. Cài đặt</h2>
|
<h2>1. Cài đặt</h2>
|
||||||
<code>
|
<code>
|
||||||
/* 1. index.html */
|
<!-- // 1. index.html -->
|
||||||
|
|
||||||
<div><<span>iframe</span> class="hura-main-content" id="js-hura-iframe" src="{// Url giao diện \\}"> <</<span>iframe</span>></div>
|
<iframe class="hura-main-content" id="js-hura-iframe" src="{// Url giao diện \\}"></iframe>
|
||||||
<div><<span>script</span> src="js/hura_edit.js"> <<span>/script</span>> => // code edit template</div>
|
<script src="js/hura_edit.js"></script> => // code edit template
|
||||||
<div><<span>script</span> src="js/jscolor.js"> <<span>/script</span>> => // Bảng mã màu</div>
|
<script src="js/jscolor.js"></script> => // Bảng mã màu
|
||||||
<div><<span>script</span>> Hura_Edit.install(); <<span>/script</span>> // => Cài đặt</div>
|
<script>
|
||||||
|
Hura_Edit.install(); // => Cài đặt
|
||||||
|
</script>
|
||||||
|
</code>
|
||||||
|
|
||||||
|
<code>
|
||||||
/* 2. file giao diện. Các file dưới sẽ được thêm vào iframe. Function cài đặt Hura_Edit.Iframe.iframe_Setup() */
|
/* 2. file giao diện. Các file dưới sẽ được thêm vào iframe. Function cài đặt Hura_Edit.Iframe.iframe_Setup() */
|
||||||
<div><<span>link</span> rel="stylesheet" href="css/style.css" ></div>
|
|
||||||
<div><<span>script</span>> src="https://code.jquery.com/ui/1.13.2/jquery-ui.min.js"> <<span>/script</span>> => // Thư viện kéo/thả</div>
|
<link rel="stylesheet" href="css/style.css"/>
|
||||||
|
<script src="https://code.jquery.com/ui/1.13.2/jquery-ui.min.js"> </script> => // Thư viện kéo/thả
|
||||||
</code>
|
</code>
|
||||||
|
|
||||||
|
|
||||||
@@ -31,10 +36,10 @@
|
|||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<b>data-hura-type="{{ type }}" :</b>
|
<b>data-hura-type="{{ type }}" :</b>
|
||||||
Kiểu giao diện được edit. Dưới đây là danh sách type được sử dụng cho giao diện <span><</span>a href="https://app.adman.vn/api/preview/minigame.php?id=O4z25JLzP9" target="_blank" style="font-weight:bold;">Mini Game <span><</span>/a>
|
Kiểu giao diện được edit. Dưới đây là danh sách type được sử dụng cho giao diện <a href="https://app.adman.vn/api/preview/minigame.php?id=O4z25JLzP9" target="_blank" style="font-weight:bold;">Mini Game </a>
|
||||||
<ul>
|
<ul>
|
||||||
<li>file : Dùng thay thế file logo, banner</li>
|
<li>file : Dùng thay thế file logo, banner</li>
|
||||||
<li>text : Dùng chỉnh sửa HTML là text (Nếu thẻ được chọn là thẻ <span><</span>a> thì sẽ có thêm lựa chọn: sửa URL, Mở tab mới)</li>
|
<li>text : Dùng chỉnh sửa HTML là text (Nếu thẻ được chọn là thẻ <a> thì sẽ có thêm lựa chọn: sửa URL, Mở tab mới)</li>
|
||||||
<li>wheel : Dùng cài đặt vòng quay (Thêm, sửa, xóa)</li>
|
<li>wheel : Dùng cài đặt vòng quay (Thêm, sửa, xóa)</li>
|
||||||
<li>reward : Dùng cho mục khách trúng thưởng (Ẩn/Hiện các cột trong bảng)</li>
|
<li>reward : Dùng cho mục khách trúng thưởng (Ẩn/Hiện các cột trong bảng)</li>
|
||||||
</ul>
|
</ul>
|
||||||
@@ -51,48 +56,52 @@
|
|||||||
|
|
||||||
<code>
|
<code>
|
||||||
<!-- // Logo -->
|
<!-- // Logo -->
|
||||||
<span><</span>a class="js-hura-edit" data-hura-type="file">
|
|
||||||
<div><span><</span>img src="{{ url image }}" alt="logo"></div>
|
<a class="js-hura-edit" data-hura-type="file">
|
||||||
<span><</span>/a>
|
<img src="https://aman.gleecdn.com/file/1/tl/TL1MzbLUhPQoaGI.png" alt="logo">
|
||||||
|
</a>
|
||||||
|
|
||||||
<!-- // Banner -->
|
<!-- // Banner -->
|
||||||
<span><</span>div class="js-hura-edit" data-hura-type="file">
|
<div class="js-hura-edit" data-hura-type="file">
|
||||||
<div><span><</span>img src="{{ url image }}" alt="banner"></div>
|
<img src="https://aman.gleecdn.com/file/1/fo/fOE3m0gpFuzy7LU.jpg" alt="banner">
|
||||||
<span><</span>/div>
|
</div>
|
||||||
</code>
|
</code>
|
||||||
|
|
||||||
|
|
||||||
<p> VD 2: Sửa Text sẽ dùng <b>data-hura-type="text"</b> </p>
|
<p> VD 2: Sửa Text sẽ dùng <b>data-hura-type="text"</b> </p>
|
||||||
|
|
||||||
<code>
|
<code>
|
||||||
<!-- Text -->
|
|
||||||
<div><span><</span>div class="js-hura-edit" data-hura-type="text"></div>
|
|
||||||
<div><span><</span>a target="_blank" href="https://demxanh.com/">Trang chủ<span><</span>/a></div>
|
|
||||||
<div><span><</span>a target="_blank" href="https://demxanh.com/chinh-sach-bao-hanh.html"><span>Bảo hành</span><span><</span>/a></div>
|
|
||||||
<div><span><</span>a target="_blank" href="https://demxanh.com/lien-he.html">Liên hệ<span><</span>/a></div>
|
|
||||||
<div><span><</span>/div></div>
|
|
||||||
|
|
||||||
<div><span><</span>div class="js-hura-edit" data-hura-type="text"></div>
|
<div class="js-hura-edit" data-hura-type="text">
|
||||||
<div><span><</span>p>1. Quý khách cần đăng nhập Thông tin chính xác để quay thưởng.<span><</span>/p></div>
|
<a target="_blank" href="https://demxanh.com/">Trang chủ</a>
|
||||||
<div><span><</span>p>2. Mỗi khách hàng được quay 5 lần và chỉ được chọn 1 phần quà.<span><</span>/p></div>
|
<a target="_blank" href="https://demxanh.com/chinh-sach-bao-hanh.html"><span>Bảo hành</span></a>
|
||||||
<div><span><</span>p>3. Mã giảm giá sử dụng trong vòng 15 ngày kể từ ngày nhận thưởng.<span><</span>/p></div>
|
<a target="_blank" href="https://demxanh.com/lien-he.html">Liên hệ</a>
|
||||||
<div><span><</span>p>4. Voucher được phát hành và áp dụng đến khi hết số lượng.<span><</span>/p></div>
|
</div>
|
||||||
<div><span><</span>/div></div>
|
|
||||||
|
|
||||||
|
<div class="js-hura-edit" data-hura-type="text">
|
||||||
|
<p>1. Quý khách cần đăng nhập Thông tin chính xác để quay thưởng.</p>
|
||||||
|
<p>2. Mỗi khách hàng được quay 5 lần và chỉ được chọn 1 phần quà.</p>
|
||||||
|
<p>3. Mã giảm giá sử dụng trong vòng 15 ngày kể từ ngày nhận thưởng.</p>
|
||||||
|
<p>4. Voucher được phát hành và áp dụng đến khi hết số lượng.</p>
|
||||||
|
</div>
|
||||||
</code>
|
</code>
|
||||||
|
|
||||||
|
|
||||||
<p> VD 3: Sửa Vòng quay sẽ dùng <b>data-hura-type="wheel"</b> </p>
|
<p> VD 3: Sửa Vòng quay sẽ dùng <b>data-hura-type="wheel"</b> </p>
|
||||||
|
|
||||||
<code>
|
<code>
|
||||||
<div><span><</span>div class="js-hura-edit" data-hura-type="wheel"></div>
|
|
||||||
<div><span><</span>canvas id="canvas"><span><</span>/canvas></div>
|
<div class="js-hura-edit" data-hura-type="wheel">
|
||||||
<div><span><</span>/div></div>
|
<canvas id="canvas"></canvas>
|
||||||
|
</div>
|
||||||
</code>
|
</code>
|
||||||
|
|
||||||
<p> VD 4: Sửa Bảng trúng thưởng sẽ dùng <b>data-hura-type="reward"</b> </p>
|
<p> VD 4: Sửa Bảng trúng thưởng sẽ dùng <b>data-hura-type="reward"</b> </p>
|
||||||
|
|
||||||
<code>
|
<code>
|
||||||
<span><</span>div class="js-hura-edit" data-hura-type="reward" style="padding: 4px;">
|
|
||||||
<span><</span>div id="js-recent-winners"><span><</span>table class="text-14 text-12-mb w-100"><span><</span>thead><span><</span>tr><span><</span>th>STT<span><</span>/th><span><</span>th>Khách hàng<span><</span>/th><span><</span>th>Giải thưởng<span><</span>/th><span><</span>th>Thời gian<span><</span>/th><span><</span>/tr><span><</span>/thead><span><</span>tbody><span><</span>tr><span><</span>td>1<span><</span>/td><span><</span>td>***ngoc@gmail.com<span><</span>/td><span><</span>td>Voucher 100K<span><</span>/td><span><</span>td>15-Mar-2023 9:43<span><</span>/td><span><</span>/tr><span><</span>/table><span><</span>/div>
|
<div class="js-hura-edit" data-hura-type="reward" style="padding: 4px;">
|
||||||
<span><</span>/div>
|
<div id="js-recent-winners"><table class="text-14 text-12-mb w-100"><thead><tr><th>STT</th><th>Khách hàng</th><th>Giải thưởng</th><th>Thời gian</th></tr></thead><tbody><tr><td>1</td><td>***ngoc@gmail.com</td><td>Voucher 100K</td><td>15-Mar-2023 9:43</td></tr></table></div>
|
||||||
|
</div>
|
||||||
</code>
|
</code>
|
||||||
Reference in New Issue
Block a user