u
This commit is contained in:
14
old/assets/script/charts.js
Normal file
14
old/assets/script/charts.js
Normal file
File diff suppressed because one or more lines are too long
51
old/assets/script/checkbox.js
Normal file
51
old/assets/script/checkbox.js
Normal file
@@ -0,0 +1,51 @@
|
||||
/**
|
||||
* Created by Glee on 03-Nov-2020.
|
||||
*/
|
||||
|
||||
const Checkbox = function (deleteItemCb) {
|
||||
|
||||
const INPUT_CHECKBOX_CLASS = '.js-checkbox-id';
|
||||
let _deleteItemCb = deleteItemCb;
|
||||
|
||||
return {
|
||||
setAllChecked,
|
||||
getCheckedIds,
|
||||
deleteSelected
|
||||
}
|
||||
|
||||
function setAllChecked() {
|
||||
var all_checkboxes = $(INPUT_CHECKBOX_CLASS);
|
||||
|
||||
if ($(this).is(':checked')) {
|
||||
all_checkboxes.each(function (index, item) {
|
||||
$(item).prop("checked", true);
|
||||
})
|
||||
} else {
|
||||
all_checkboxes.each(function (index, item) {
|
||||
$(item).prop("checked", false);
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
function deleteSelected() {
|
||||
if (!confirm('Bạn chắc chắn muốn xóa ?')) {
|
||||
return;
|
||||
}
|
||||
|
||||
$(INPUT_CHECKBOX_CLASS).each(function (index, item) {
|
||||
if ($(item).is(':checked')) {
|
||||
//delete_deal(item.value, false);
|
||||
_deleteItemCb(item.value)
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function getCheckedIds() {
|
||||
let list_ids = [];
|
||||
$(INPUT_CHECKBOX_CLASS).each(function (index, item) {
|
||||
if ($(item).is(':checked')) list_ids.push(item.value);
|
||||
});
|
||||
|
||||
return list_ids;
|
||||
}
|
||||
};
|
||||
21
old/assets/script/global.js
Normal file
21
old/assets/script/global.js
Normal file
@@ -0,0 +1,21 @@
|
||||
const o = /* @__PURE__ */ (() => {
|
||||
function a(t) {
|
||||
const s = $("#status_" + t);
|
||||
s.html('<span class="loading loading-bars loading-sm"></span><span class="ml-[3px]">Processing...</span>'), setTimeout(() => {
|
||||
s.html("");
|
||||
}, 1e3);
|
||||
}
|
||||
function n(t) {
|
||||
const s = $("#js-status-hottype-" + t);
|
||||
s.html('<span class="loading loading-bars loading-sm"></span><span class="ml-[3px]">Processing...</span>'), setTimeout(() => {
|
||||
s.html("");
|
||||
}, 1e3);
|
||||
}
|
||||
return {
|
||||
addProductToCategory: a,
|
||||
markProductAsHot: n
|
||||
};
|
||||
})();
|
||||
export {
|
||||
o as default
|
||||
};
|
||||
41
old/assets/script/hura.global.css
Normal file
41
old/assets/script/hura.global.css
Normal file
@@ -0,0 +1,41 @@
|
||||
/* ===========================
|
||||
FONT IMPORT (Dùng chung)
|
||||
=========================== */
|
||||
@import "https://fonts.googleapis.com/css2?family=DM+Sans:wght@100;200;300;400;500;600;700;800;900;1000&display=swap";
|
||||
@import "https://fonts.googleapis.com/css2?family=Wix+Madefor+Text:wght@400;500;600;700;800;1000&display=swap";
|
||||
@import "https://fonts.googleapis.com/css2?family=Inclusive+Sans:wght@400;500;600;700;800;900;1000&display=swap";
|
||||
@import "https://fonts.googleapis.com/css2?family=AR+One+Sans:wght@400;500;600;700;800;1000&display=swap";
|
||||
|
||||
@layer properties {
|
||||
:root {
|
||||
--font-sans: "Inclusive Sans", sans-serif;
|
||||
--text-base: 16px;
|
||||
--color-hura: #0041e8;
|
||||
--color-header: #002bb5;
|
||||
--text-base--line-height: 1.5;
|
||||
}
|
||||
}
|
||||
|
||||
@layer base {
|
||||
html,
|
||||
body {
|
||||
font-family: var(--font-sans);
|
||||
font-size: var(--text-base);
|
||||
line-height: var(--text-base--line-height);
|
||||
}
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
}
|
||||
|
||||
@layer components {
|
||||
.btn-active {
|
||||
--btn-bg: var(--color-hura);
|
||||
--btn-fg: #ffffff;
|
||||
--btn-border: var(--color-hura);
|
||||
}
|
||||
.btn-active:hover {
|
||||
--btn-bg: #002bb5;
|
||||
--btn-border: #002bb5;
|
||||
}
|
||||
}
|
||||
114
old/assets/script/hura_style.css
Normal file
114
old/assets/script/hura_style.css
Normal file
File diff suppressed because one or more lines are too long
2
old/assets/script/jquery.js
vendored
Normal file
2
old/assets/script/jquery.js
vendored
Normal file
File diff suppressed because one or more lines are too long
16584
old/assets/script/style.css
Normal file
16584
old/assets/script/style.css
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user