Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2e7aee9

Browse files
author
kadir.avci
committed
Changed site.css and site.js.
Added helper.js. Added bootstrap cdn to layout.cshtml.
1 parent 71cc842 commit 2e7aee9

File tree

4 files changed

+45
-42
lines changed

4 files changed

+45
-42
lines changed
0 Bytes
Binary file not shown.

‎VueJsTutorial/Views/Shared/_Layout.cshtml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>@ViewData["Title"] - VueJS</title>
77

88
<environment include="Development">
9-
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.css" />
9+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css" />
1010
</environment>
1111
<environment exclude="Development">
1212
@*<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css"
@@ -57,6 +57,7 @@
5757
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.19.0/axios.min.js"></script>
5858
<script src="https://cdn.jsdelivr.net/npm/lodash@4.13.1/lodash.min.js"></script>
5959
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
60+
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/js/bootstrap.bundle.min.js"></script>
6061
@*<script src="~/lib/jquery/dist/jquery.js"></script>
6162
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.js"></script>*@
6263
</environment>

‎VueJsTutorial/wwwroot/css/site.css‎

Lines changed: 16 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,31 @@
11
/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
22
for details on configuring this project to bundle and minify static web assets. */
33

4-
a.navbar-brand {
5-
white-space: normal;
6-
text-align: center;
7-
word-break: break-all;
8-
}
4+
a.navbar-brand { white-space: normal; text-align: center; word-break: break-all; }
95

106
/* Sticky footer styles
117
-------------------------------------------------- */
12-
html {
13-
font-size: 14px;
14-
}
8+
html { font-size: 14px; font-family: 'Roboto', sans-serif; }
9+
1510
@media (min-width: 768px) {
16-
html {
17-
font-size: 16px;
18-
}
11+
html { font-size: 16px; }
1912
}
2013

21-
.border-top {
22-
border-top: 1px solid #e5e5e5;
23-
}
24-
.border-bottom {
25-
border-bottom: 1px solid #e5e5e5;
26-
}
14+
.border-top { border-top: 1px solid #e5e5e5; }
15+
.border-bottom { border-bottom: 1px solid #e5e5e5; }
2716

28-
.box-shadow {
29-
box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
30-
}
17+
.box-shadow { box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05); }
3118

32-
button.accept-policy {
33-
font-size: 1rem;
34-
line-height: inherit;
35-
}
19+
button.accept-policy { font-size: 1rem; line-height: inherit; }
3620

3721
/* Sticky footer styles
3822
-------------------------------------------------- */
39-
html {
40-
position: relative;
41-
min-height: 100%;
42-
}
23+
html { position: relative; min-height: 100%; }
4324

44-
body {
45-
/* Margin bottom by footer height */
46-
margin-bottom: 60px;
47-
}
48-
.footer {
49-
position: absolute;
50-
bottom: 0;
51-
width: 100%;
52-
white-space: nowrap;
53-
/* Set the fixed height of the footer here */
54-
height: 60px;
55-
line-height: 60px; /* Vertically center the text there */
56-
}
25+
body { /* Margin bottom by footer height */ margin-bottom: 60px; }
26+
.footer { position: absolute; bottom: 0; width: 100%; white-space: nowrap; /* Set the fixed height of the footer here */ height: 60px; line-height: 60px; /* Vertically center the text there */ }
27+
28+
.box { width: 100%; float: left; margin-bottom: 5%; }
29+
.item, .image, .info { width: 48%; float: left; padding: 1%; }
30+
.image img { margin: 0 auto; max-height: 150px; }
31+
.subtotal { width: 98%; float: left; margin-right: 1%; text-align: right; }

‎VueJsTutorial/wwwroot/js/helper.js‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
"use strict"
2+
3+
function $get(ref, url) {
4+
axios.get(url)
5+
.then(response => {
6+
//ref.result = response.data.result
7+
ref.result = response.data
8+
})
9+
.catch(error => console.log(error));
10+
}
11+
12+
function ajaxcall(url, method) {
13+
var request = new httpRequest();
14+
15+
request.method = method;
16+
request.url = url;
17+
18+
request.success = function (response) {
19+
return JSON.parse(JSON.stringify(response))
20+
};
21+
22+
request.fail = function (error) {
23+
console.log(error);
24+
};
25+
26+
request.send();
27+
};

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /