Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
guru
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
guru
Commits
6ec20ba3
Commit
6ec20ba3
authored
Dec 24, 2018
by
Clint.Network
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Participated Modal
parent
4b35f4ce
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
1 deletion
+32
-1
HomeController.cs
Stratis.Guru/Controllers/HomeController.cs
+11
-1
Lottery.cshtml
Stratis.Guru/Views/Home/Lottery.cshtml
+21
-0
check.png
Stratis.Guru/wwwroot/images/check.png
+0
-0
No files found.
Stratis.Guru/Controllers/HomeController.cs
View file @
6ec20ba3
...
...
@@ -157,7 +157,17 @@ namespace Stratis.Guru.Controllers
_settings
.
IncrementIterator
();
_participation
.
StoreParticipation
(
HttpContext
.
Session
.
GetString
(
"Ticket"
),
nickname
,
address
,
double
.
Parse
(
HttpContext
.
Session
.
GetString
(
"DepositedAmount"
)));
return
RedirectToAction
(
"Lottery"
);
return
RedirectToAction
(
"Participated"
);
}
[
Route
(
"lottery/participated"
)]
public
IActionResult
Participated
()
{
ViewBag
.
NextDraw
=
long
.
Parse
(
_memoryCache
.
Get
(
"NextDraw"
).
ToString
());
ViewBag
.
Jackpot
=
_memoryCache
.
Get
(
"Jackpot"
);
ViewBag
.
Players
=
_participation
.
GetPlayers
(
_draws
.
GetLastDraw
());
ViewBag
.
Participated
=
true
;
return
View
(
"Lottery"
);
}
[
Route
(
"about"
)]
...
...
Stratis.Guru/Views/Home/Lottery.cshtml
View file @
6ec20ba3
...
...
@@ -122,6 +122,23 @@
</div>
</div>
</div>
<div class="modal fade" id="participated-modal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"><i class="fa fa-check"></i> Participation Confirmed</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body text-center py-4">
<h2 class="text-dark mb-1">Thank You !</h2>
<p>Thank you for your participation and wish you good luck!.</p>
<img class="mt-3" src="~/images/check.png" style="width: 250px;" />
</div>
</div>
</div>
</div>
<div class="shadow-inset"></div>
<section class="welcome-area pb-4" id="welcome-1">
<div class="header-token">
...
...
@@ -170,6 +187,10 @@
{
<text>$("#deposit-modal").modal({backdrop: 'static', keyboard: false});</text>
}
@if(ViewBag.Participated == true)
{
<text>$("#participated-modal").modal("show"); setTimeout(function() {$("#participated-modal").modal("hide");}, 5000);</text>
}
var nextYear = moment.tz("@((DateTimeOffset.FromUnixTimeSeconds((long)ViewBag.NextDraw)).ToString("yyyy-MM-dd 20:00"))", "Europe/London");
$('#clock').countdown(nextYear.toDate(), function(event) {
...
...
Stratis.Guru/wwwroot/images/check.png
0 → 100644
View file @
6ec20ba3
51 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment