styling, formatting in script

This commit is contained in:
matteo-id committed 2022-05-23 19:34:08 -04:00
1 parent 72ee1ac338
commit d53dbc3eca
183 files changed
+37663 -34

No files matched your search

+57 -5
View File
@@ -21,12 +21,64 @@ def base(request):
{'nbar': 'home'})
def home(request):
# Powerball
module_dir = os.path.dirname(__file__)
file_path = os.path.join(module_dir,'lottopy_web_edition/pb_ans.csv')
pb = csv.reader(file_path)
for row in pb:
numbers = list(pb)
context = {'nbar': 'home', 'numbers': numbers}
pb_file_path = os.path.join(module_dir,'lottopy_web_edition/pb_ans.csv')
pb = csv.DictReader(open(pb_file_path), delimiter=',')
pb_numbers = {}
for x in pb:
pbnumbers = str(x)[1:-1].replace("'"," ").replace(",","\n").replace("_"," ")
pbnumbers.capitalize()
# MegaMil
mm_file_path = os.path.join(module_dir,'lottopy_web_edition/mm_ans.csv')
mm = csv.DictReader(open(mm_file_path), delimiter=',')
mmnumbers = {}
for y in mm:
mmnumbers = str(y)[1:-1].replace("'"," ").replace(",","\n").replace("_"," ")
# Lotto America
la_file_path = os.path.join(module_dir,'lottopy_web_edition/la_ans.csv')
la = csv.DictReader(open(la_file_path), delimiter=',')
lanumbers = {}
for z in la:
lanumbers = str(z)[1:-1].replace("'"," ").replace(",","\n").replace("_"," ")
# Daily3
d3_file_path = os.path.join(module_dir,'lottopy_web_edition/d3_ans.csv')
d3 = csv.DictReader(open(d3_file_path), delimiter=',')
d3numbers = {}
for a in d3:
d3numbers = str(a)[1:-1].replace("'"," ").replace('"', " ").replace(",","\n").replace("_"," ")
# Daily4
d4_file_path = os.path.join(module_dir,'lottopy_web_edition/d4_ans.csv')
d4 = csv.DictReader(open(d4_file_path), delimiter=',')
d4numbers = {}
for b in d4:
d4numbers = str(b)[1:-1].replace("'"," ").replace('"', " ").replace(",","\n").replace("_"," ")
# Cash25
c25_file_path = os.path.join(module_dir,'lottopy_web_edition/c25_ans.csv')
c25 = csv.DictReader(open(c25_file_path), delimiter=',')
c25numbers = {}
for c in c25:
c25numbers = str(c)[1:-1].replace("'"," ").replace('"', " ").replace(",","\n").replace("_"," ")
#Sanitizer (WIP)
#for key, value in pbnumbers.items():
# pbnumbers = str(key)+":"+value
context = {
'nbar': 'home',
'pbnumbers': pbnumbers,
'mmnumbers': mmnumbers,
'lanumbers': lanumbers,
'd3numbers': d3numbers,
'd4numbers': d4numbers,
'c25numbers': c25numbers
}
return render(request, 'lottopy/home.html', context)
def about(request):
Whitespace-only changes.
+13 -1
View File
@@ -89,6 +89,7 @@ body {
-webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.box
{
top: 50%;
@@ -729,6 +730,17 @@ progress {
width: auto;
}
.mf-box {
position: center;
display: flex;
flex-wrap: wrap;
margin-top: calc(-1 * var(--bs-gutter-y));
margin-right: calc(-0.5 * var(--bs-gutter-x));
margin-left: calc(-0.5 * var(--bs-gutter-x));
fill: red;
margin: 4px;
}
.row-cols-1 > * {
flex: 0 0 auto;
width: 100%;
@@ -7865,7 +7877,7 @@ textarea.form-control-lg {
.bg-primary {
--bs-bg-opacity: 1;
background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important;
/*background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important;*/
}
.bg-secondary {
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 18.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Слой_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="41 0 854 768" enable-background="new 41 0 854 768" xml:space="preserve">
<path fill="#000000" d="
M411.1,5v205.2h179.8v116.8l7.2-4.1l4.2-5.7l4.1-4.9l9-4.9l6.5-3.3l4.9-8.2l4.1-4.1l7.3-6.5l7.3-3.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1,5.7,6.5
s1.6,7.3,1.6,7.3l3.3,4.1l9-7.3l4.9-5.7l6.5-1.6l7.3-4.1l4.9-7.3l9.8-4.9l8.2-10.6l15.5-16.2l10.6-9.7h9.5l0.3-12.9l4.9-8.3l-4.9-9
l5.7-9.8l1.6-9l6.5-7.3l-2.4-9l6.5-1.6l4.1-9.8l0.8-13l5.7-23.6l5.7-16.3l7.3-14.7l4.9-12.2l-3.3-12.2l2.4-20.4l-2.4-13.9l-5.7-9.8
l-3.3-6.5l9-8.2l5.5,3.3L411.1,5z"/>
</svg>

After

Width:  |  Height:  |  Size: 3.0 KiB

+6 -1
View File
@@ -16,6 +16,11 @@
<!-- Core theme CSS (includes Bootstrap)-->
<!-- Bootstrap core CSS -->
<link href="{% static 'bootstrap/css/styles.css' %}" rel="stylesheet">
<!-- <link rel="stylesheet" href=
"https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css"
integrity=
"sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS"
crossorigin="anonymous"> -->
</head>
<body>
<!-- Responsive navbar-->
@@ -23,7 +28,7 @@
<div class="container">
<a class="navbar-brand" href="{% url 'home' %}">
<img src="{% static 'bootstrap/pics/WVBall.png' %}" id="navbarSupportedContent" width="25" float="left">
<img src="{% static 'bootstrap/pics/WVOut.svg' %}" id="navbarSupportedContent" width="25" float="left">
West Virginia Lottery Predictions</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
+39 -27
View File
@@ -2,64 +2,76 @@
{% block content %}
<h1>Find your lucky numbers and hit big!</h1>
<p class="lead">The purpose of this site is to analyze existing West Virginia winning lottery numbers, and return only the most likely combinations. This can be used to gain an edge on the lottery system, and help you win big!</p>
<section class="py-5 border-bottom" id="features">
<hr class="container px-5 my-5">
<div class="row gx-5">
<section class="py-5 border-top" id="features">
<div class="container px-5 my-5">
<content class="row gx-5 ">
<div class="col-lg-4 mb-5 mb-lg-0">
<div class="feature bg-primary bg-gradient text-white rounded-3 mb-3"><i class="bi bi-collection"></i></div>
<div class="feature bg-primary bg-gradient text-white rounded-3 mb-3"><i class="bi bi-collection"></i>
<h2 class="col-auto" width=200>PowerBall</h2>
<p>{{ numbers }}</p>
<p>{{ pbnumbers|linebreaks }}</p>
<a>
Draws on ... Last draw: {{ pb_date }}
Draws every Monday, Wednesday, and Saturday at 11:00 PM {# Last draw: {{ pb_date }} #}
<i class="bi bi-arrow-right"></i>
</a>
</div>
</div>
<div class="col-lg-4 mb-5 mb-lg-0">
<div class="feature bg-primary bg-gradient text-white rounded-3 mb-3"><i class="bi bi-building"></i></div>
<div class="feature bg-primary bg-gradient text-white rounded-3 mb-3"><i class="bi bi-building"></i>
<h2 class="col-auto" width=200>Mega Millions</h2>
<p>{{ numbers }}</p>
<p>{{ mmnumbers|linebreaks }}</p>
<a>
Draws on ... Last draw: {{ mm_date }}
Draws every Tuesday and Friday night at 10:59 PM {# Last draw: {{ mm_date }} #}
<i class="bi bi-arrow-right"></i>
</a>
</div>
</div>
<div class="col-lg-4 mb-5 mb-lg-0">
<div class="feature bg-primary bg-gradient text-white rounded-3 mb-3"><i class="bi bi-toggles2"></i></div>
<div class="feature bg-primary bg-gradient text-white rounded-3 mb-3"><i class="bi bi-toggles2"></i>
<h2 class="col-auto" width=200>Lotto America</h2>
<p>{{ numbers }}</p>
<p>{{ lanumbers|linebreaks }}</p>
<a>
Draws on ... Last draw: {{ la_date }}
Draws every Wednesday and Saturday night at 10:30 PM {# Last draw: {{ la_date }} #}
<i class="bi bi-arrow-right"></i>
</a>
</div>
<div class="col-lg-4 mb-5 mb-lg-0">
<div class="feature bg-primary bg-gradient text-white rounded-3 mb-3"><i class="bi bi-collection"></i></div>
<h2 class="col-auto" width=200>Daily4</h2>
<p>{{ numbers }}</p>
<a>
Draws on ... Last draw: {{ d4_date }}
<i class="bi bi-arrow-right"></i>
</a>
</div>
<div class="col-lg-4 mb-5 mb-lg-0">
<div class="feature bg-primary bg-gradient text-white rounded-3 mb-3"><i class="bi bi-building"></i></div>
<div class="feature bg-primary bg-gradient text-white rounded-3 mb-3"><i class="bi bi-collection"></i>
<h2 class="col-auto" width=200>Daily3</h2>
<p>{{ numbers }}</p>
<p>{{ d3numbers|linebreaks }}</p>
<a>
Draws on ... Last draw: {{ d3_date }}
Draws every weekday but Sunday at 6:59 PM {# Last draw: {{ d3_date }} #}
<i class="bi bi-arrow-right"></i>
</a>
</div>
</div>
<div class="col-lg-4 mb-5 mb-lg-0">
<div class="feature bg-primary bg-gradient text-white rounded-3 mb-3"><i class="bi bi-building"></i>
<h2 class="col-auto" width=200>Daily4</h2>
<p>{{ d4numbers|linebreaks }}</p>
<a>
Draws every weekday but Sunday at 6:59 PM {# Last draw: {{ d4_date }} #}
<i class="bi bi-arrow-right"></i>
</a>
</div>
</div>
<div class="col-lg-4">
<div class="feature bg-primary bg-gradient text-white rounded-3 mb-3"><i class="bi bi-toggles2"></i></div>
<div class="feature bg-primary bg-gradient text-white rounded-3 mb-3"><i class="bi bi-toggles2"></i>
<h2 class="col-auto" width=200>Cash25</h2>
<p>{{ numbers }}</p>
<p>{{ c25numbers|linebreaks }}</p>
<a>
Draws on ... Last draw: {{ c25_date }}
Draws every weekday but Sunday at 6:59 PM {# Last draw: {{ c25_date }} #}
<i class="bi bi-arrow-right"></i>
</a>
</div>
</div>
</div>
<div class="col-lg-4 mb-5 mb-lg-0" style="margin:auto">
<div class="feature bg-primary bg-gradient text-white rounded-3 mb-3"><i class="bi bi-building"></i>
<h2 class="col-auto mf-box" width=200>Cash Pop coming soon!</h2>
<p>Cash Pop is a new game from the WV lottery, if anyone would like to send support to get it done faster check the About page for more info on how to help!</p>
</div>
</div>
</content>
</div>
</section>
<h6 class="card-footer" text-align=bottom>Disclaimer: WV Lottopy developers do not guarantee a win on the first or even the fortieth set of numbers. This is used to gain an <b><i>edge </i></b> over those who do not use this program.</h6>