Files
site/res/templates/component-rating.html
2025-12-27 21:59:58 +08:00

446 lines
19 KiB
HTML

<!DOCTYPE html>
<html lang="en" dir="ltr" data-bs-theme="light" data-color-theme="Blue_Theme" data-layout="vertical">
<head>
<!-- Required meta tags -->
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Favicon icon-->
<link rel="shortcut icon" type="image/png" href="../assets/images/logos/favicon.png" />
<!-- Core Css -->
<link rel="stylesheet" href="../assets/css/styles.css" />
<title>Modernize Bootstrap Admin</title>
<link rel="stylesheet" href="../assets/libs/jquery-raty-js/lib/jquery.raty.css">
</head>
<body class="link-sidebar">
{{template "components/preloader.html" .}}
<div id="main-wrapper">
<!-- Sidebar Start -->
{{template "components/sidebar.html" .}}
<!-- Sidebar End -->
<div class="page-wrapper">
<!-- Header Start -->
{{template "components/topbar.html" .}}
<!-- Header End -->
<div class="body-wrapper">
<div class="container-fluid">
<div class="card bg-info-subtle shadow-none position-relative overflow-hidden mb-4">
<div class="card-body px-4 py-3">
<div class="row align-items-center">
<div class="col-9">
<h4 class="fw-semibold mb-8">Rating</h4>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a class="text-muted text-decoration-none" href="../main/index.html">Home</a>
</li>
<li class="breadcrumb-item" aria-current="page">Rating</li>
</ol>
</nav>
</div>
<div class="col-3">
<div class="text-center mb-n5">
<img src="../assets/images/breadcrumb/ChatBc.png" alt="modernize-img" class="img-fluid mb-n4" />
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6 col-lg-4">
<div class="card">
<div class="border-bottom title-part-padding">
<h4 class="card-title mb-0">Default</h4>
</div>
<div class="card-body">
<p>This is the most basic example of ratings.</p>
<div id="default-star-rating"></div>
</div>
</div>
</div>
<div class="col-md-6 col-lg-4">
<div class="card">
<div class="border-bottom title-part-padding">
<h4 class="card-title mb-0">Score</h4>
</div>
<div class="card-body">
<p>Used when we want starts with a saved rating.</p>
<div id="score-rating"></div>
</div>
</div>
</div>
<div class="col-md-6 col-lg-4">
<div class="card">
<div class="border-bottom title-part-padding">
<h4 class="card-title mb-0">Number Of Stars</h4>
</div>
<div class="card-body">
<p>Changes the number of stars.</p>
<div id="no-of-stars"></div>
</div>
</div>
</div>
<div class="col-md-6 col-lg-4">
<div class="card">
<div class="border-bottom title-part-padding">
<h4 class="card-title mb-0">Number Max</h4>
</div>
<div class="card-body">
<p>Change the maximum of stars that can be created.</p>
<div id="max-number-stars"></div>
</div>
</div>
</div>
<div class="col-md-6 col-lg-4">
<div class="card">
<div class="border-bottom title-part-padding">
<h4 class="card-title mb-0">Read Only</h4>
</div>
<div class="card-body">
<p>
You can prevent users to vote. It can be applied with or
without score.
</p>
<div id="read-only-stars"></div>
</div>
</div>
</div>
<div class="col-md-6 col-lg-4">
<div class="card">
<div class="border-bottom title-part-padding">
<h4 class="card-title mb-0">No Rated Message</h4>
</div>
<div class="card-body">
<p>
If readOnly is enabled and there is no score, the hint "Not
rated yet!" will be shown for all stars.
</p>
<div id="no-rated-msg"></div>
</div>
</div>
</div>
<div class="col-md-6 col-lg-4">
<div class="card">
<div class="border-bottom title-part-padding">
<h4 class="card-title mb-0">Cancel</h4>
</div>
<div class="card-body">
<p>
Add a cancel button on the left side of the stars to cancel
the score.
</p>
<div id="cancel-star"></div>
</div>
</div>
</div>
<div class="col-md-6 col-lg-4">
<div class="card">
<div class="border-bottom title-part-padding">
<h4 class="card-title mb-0">Space</h4>
</div>
<div class="card-body">
<p>
You can change the space between the star and make them
conjusted.
</p>
<div id="space-star"></div>
</div>
</div>
</div>
<div class="col-md-6 col-lg-4">
<div class="card">
<div class="border-bottom title-part-padding">
<h4 class="card-title mb-0">Single</h4>
</div>
<div class="card-body">
<p>
You can turn on just the mouseovered star instead all from
the first until that one.
</p>
<div id="single-star"></div>
</div>
</div>
</div>
<div class="col-md-6 col-sm-12">
<div class="card">
<div class="border-bottom title-part-padding">
<h4 class="card-title mb-0">Half</h4>
</div>
<div class="card-body">
<p>
Enables the half star mouseover to be possible vote with
half values.
</p>
<div id="half-star"></div>
</div>
</div>
</div>
<div class="col-md-6 col-sm-12">
<div class="card">
<div class="border-bottom title-part-padding">
<h4 class="card-title mb-0">Star Half</h4>
</div>
<div class="card-body">
<p>Changes the color of the half star.</p>
<div id="star-half"></div>
</div>
</div>
</div>
<div class="col-md-6 col-sm-12">
<div class="card">
<div class="border-bottom title-part-padding">
<h4 class="card-title mb-0">Custom Icon</h4>
</div>
<div class="card-body">
<p>Change the maximum of stars that can be created.</p>
<div id="custom-icon-star"></div>
</div>
</div>
</div>
<div class="col-md-6 col-sm-12">
<div class="card">
<div class="border-bottom title-part-padding">
<h4 class="card-title mb-0">Icon Range</h4>
</div>
<div class="card-body">
<p>Change the maximum of stars that can be created.</p>
<div id="icon-range"></div>
</div>
</div>
</div>
<div class="col-md-6 col-sm-12">
<div class="card">
<div class="border-bottom title-part-padding">
<h4 class="card-title mb-0">Round Figure Enabled</h4>
</div>
<div class="card-body">
<ul class="list-style-none mb-3">
<li>
Down: score &lt;= x.25 the star will be rounded down;
</li>
<li>
Half: score &gt;= x.26 and &lt;= x.75 the star will be a
half star;
</li>
<li>Up: score &gt;= x.76 the star will be rounded up.</li>
</ul>
<div id="round-enabled"></div>
</div>
</div>
</div>
<div class="col-md-6 col-sm-12">
<div class="card">
<div class="border-bottom title-part-padding">
<h4 class="card-title mb-0">Round Figure Disabled</h4>
</div>
<div class="card-body">
<ul class="list-style-none mb-3">
<li>Down: score &lt; x.6 the star will be rounded down;</li>
<li>Up: score &gt;= x.6 the star will be rounded up;</li>
</ul>
<div id="round-disabled"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Search Bar -->
<div class="modal fade" id="exampleModal" tabindex="-1" aria-hidden="true">
<div class="modal-dialog modal-dialog-scrollable modal-lg">
<div class="modal-content rounded-1">
<div class="modal-header border-bottom">
<input type="search" class="form-control fs-3" placeholder="Search here" id="search" />
<a href="javascript:void(0)" data-bs-dismiss="modal" class="lh-1">
<i class="ti ti-x fs-5 ms-3"></i>
</a>
</div>
<div class="modal-body message-body" data-simplebar="">
<h5 class="mb-0 fs-5 p-1">Quick Page Links</h5>
<ul class="list mb-0 py-2">
<li class="p-1 mb-1 bg-hover-light-black">
<a href="javascript:void(0)">
<span class="d-block">Modern</span>
<span class="text-muted d-block">/dashboards/dashboard1</span>
</a>
</li>
<li class="p-1 mb-1 bg-hover-light-black">
<a href="javascript:void(0)">
<span class="d-block">Dashboard</span>
<span class="text-muted d-block">/dashboards/dashboard2</span>
</a>
</li>
<li class="p-1 mb-1 bg-hover-light-black">
<a href="javascript:void(0)">
<span class="d-block">Contacts</span>
<span class="text-muted d-block">/apps/contacts</span>
</a>
</li>
<li class="p-1 mb-1 bg-hover-light-black">
<a href="javascript:void(0)">
<span class="d-block">Posts</span>
<span class="text-muted d-block">/apps/blog/posts</span>
</a>
</li>
<li class="p-1 mb-1 bg-hover-light-black">
<a href="javascript:void(0)">
<span class="d-block">Detail</span>
<span class="text-muted d-block">/apps/blog/detail/streaming-video-way-before-it-was-cool-go-dark-tomorrow</span>
</a>
</li>
<li class="p-1 mb-1 bg-hover-light-black">
<a href="javascript:void(0)">
<span class="d-block">Shop</span>
<span class="text-muted d-block">/apps/ecommerce/shop</span>
</a>
</li>
<li class="p-1 mb-1 bg-hover-light-black">
<a href="javascript:void(0)">
<span class="d-block">Modern</span>
<span class="text-muted d-block">/dashboards/dashboard1</span>
</a>
</li>
<li class="p-1 mb-1 bg-hover-light-black">
<a href="javascript:void(0)">
<span class="d-block">Dashboard</span>
<span class="text-muted d-block">/dashboards/dashboard2</span>
</a>
</li>
<li class="p-1 mb-1 bg-hover-light-black">
<a href="javascript:void(0)">
<span class="d-block">Contacts</span>
<span class="text-muted d-block">/apps/contacts</span>
</a>
</li>
<li class="p-1 mb-1 bg-hover-light-black">
<a href="javascript:void(0)">
<span class="d-block">Posts</span>
<span class="text-muted d-block">/apps/blog/posts</span>
</a>
</li>
<li class="p-1 mb-1 bg-hover-light-black">
<a href="javascript:void(0)">
<span class="d-block">Detail</span>
<span class="text-muted d-block">/apps/blog/detail/streaming-video-way-before-it-was-cool-go-dark-tomorrow</span>
</a>
</li>
<li class="p-1 mb-1 bg-hover-light-black">
<a href="javascript:void(0)">
<span class="d-block">Shop</span>
<span class="text-muted d-block">/apps/ecommerce/shop</span>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<!-- Shopping Cart -->
<div class="offcanvas offcanvas-end shopping-cart" tabindex="-1" id="offcanvasRight" aria-labelledby="offcanvasRightLabel">
<div class="offcanvas-header justify-content-between py-4">
<h5 class="offcanvas-title fs-5 fw-semibold" id="offcanvasRightLabel">
Shopping Cart
</h5>
<span class="badge bg-primary rounded-4 px-3 py-1 lh-sm">5 new</span>
</div>
<div class="offcanvas-body h-100 px-4 pt-0" data-simplebar>
<ul class="mb-0">
<li class="pb-7">
<div class="d-flex align-items-center">
<img src="../assets/images/products/product-1.jpg" width="95" height="75" class="rounded-1 me-9 flex-shrink-0" alt="modernize-img" />
<div>
<h6 class="mb-1">Supreme toys cooker</h6>
<p class="mb-0 text-muted fs-2">Kitchenware Item</p>
<div class="d-flex align-items-center justify-content-between mt-2">
<h6 class="fs-2 fw-semibold mb-0 text-muted">$250</h6>
<div class="input-group input-group-sm w-50">
<button class="btn border-0 round-20 minus p-0 bg-success-subtle text-success" type="button" id="add1">
-
</button>
<input type="text" class="form-control round-20 bg-transparent text-muted fs-2 border-0 text-center qty" placeholder="" aria-label="Example text with button addon" aria-describedby="add1" value="1" />
<button class="btn text-success bg-success-subtle p-0 round-20 border-0 add" type="button" id="addo2">
+
</button>
</div>
</div>
</div>
</div>
</li>
<li class="pb-7">
<div class="d-flex align-items-center">
<img src="../assets/images/products/product-2.jpg" width="95" height="75" class="rounded-1 me-9 flex-shrink-0" alt="modernize-img" />
<div>
<h6 class="mb-1">Supreme toys cooker</h6>
<p class="mb-0 text-muted fs-2">Kitchenware Item</p>
<div class="d-flex align-items-center justify-content-between mt-2">
<h6 class="fs-2 fw-semibold mb-0 text-muted">$250</h6>
<div class="input-group input-group-sm w-50">
<button class="btn border-0 round-20 minus p-0 bg-success-subtle text-success" type="button" id="add2">
-
</button>
<input type="text" class="form-control round-20 bg-transparent text-muted fs-2 border-0 text-center qty" placeholder="" aria-label="Example text with button addon" aria-describedby="add2" value="1" />
<button class="btn text-success bg-success-subtle p-0 round-20 border-0 add" type="button" id="addon34">
+
</button>
</div>
</div>
</div>
</div>
</li>
<li class="pb-7">
<div class="d-flex align-items-center">
<img src="../assets/images/products/product-3.jpg" width="95" height="75" class="rounded-1 me-9 flex-shrink-0" alt="modernize-img" />
<div>
<h6 class="mb-1">Supreme toys cooker</h6>
<p class="mb-0 text-muted fs-2">Kitchenware Item</p>
<div class="d-flex align-items-center justify-content-between mt-2">
<h6 class="fs-2 fw-semibold mb-0 text-muted">$250</h6>
<div class="input-group input-group-sm w-50">
<button class="btn border-0 round-20 minus p-0 bg-success-subtle text-success" type="button" id="add3">
-
</button>
<input type="text" class="form-control round-20 bg-transparent text-muted fs-2 border-0 text-center qty" placeholder="" aria-label="Example text with button addon" aria-describedby="add3" value="1" />
<button class="btn text-success bg-success-subtle p-0 round-20 border-0 add" type="button" id="addon3">
+
</button>
</div>
</div>
</div>
</div>
</li>
</ul>
<div class="align-bottom">
<div class="d-flex align-items-center pb-7">
<span class="text-dark fs-3">Sub Total</span>
<div class="ms-auto">
<span class="text-dark fw-semibold fs-3">$2530</span>
</div>
</div>
<div class="d-flex align-items-center pb-7">
<span class="text-dark fs-3">Total</span>
<div class="ms-auto">
<span class="text-dark fw-semibold fs-3">$6830</span>
</div>
</div>
<a href="../main/eco-checkout.html" class="btn btn-outline-primary w-100">Go to shopping cart</a>
</div>
</div>
</div>
</div>
{{template "components/footer.html" .}}
<script src="../assets/libs/jquery-raty-js/lib/jquery.raty.js"></script>
<script src="../assets/js/plugins/rating-init.js"></script>