Skip to content

Commit b74f338

Browse files
committed
Change text and variables/class names
1 parent b3dd77e commit b74f338

File tree

5 files changed

+222
-126
lines changed

5 files changed

+222
-126
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# surveyjs-aspnet-mvc
2-
Sample .NET Core backend for SurveyJS library
2+
Sample .NET Core backend for SurveyJS: Survey Library and Survey Creator
33

44

55
## [SurveyJS Home Page](https://surveyjs.io/Examples/Service/)
66

7-
## [Live Online Survey + Builder Demo](https://surveyjs-aspnet-mvc.azurewebsites.net/)
7+
## [Live Online Survey + Survey Creator Demo](https://surveyjs-aspnet-mvc.azurewebsites.net/)
88

99

1010
### Prerequisites
@@ -14,7 +14,7 @@ Sample .NET Core backend for SurveyJS library
1414
- Start applucation via `dotnet run` command
1515

1616
At this point demo surveyjs-php service will be available at the `http://localhost:5000` address.
17-
If everything is ok, you should see project home page with list of available surveys and links to `Survey` and `Builder` pages.
17+
If everything is ok, you should see project home page with list of available surveys and links to `Survey` and `Survey Creator` pages.
1818

1919
You can continue with survey via `Run` page, go through the survey and post results to the custom service.
20-
You can continue with editor via `Edit` page, change the survey and store survey JSON to the custom service.
20+
You can continue with Survey Creator via `Edit` page, change the survey and store survey JSON to the custom service.

wwwroot/editor.html

Lines changed: 0 additions & 62 deletions
This file was deleted.

wwwroot/index.html

Lines changed: 80 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,93 @@
11
<!DOCTYPE html>
22
<html>
3-
4-
<head>
3+
<head>
54
<meta charset="utf-8" />
65
<title>SurveyJS</title>
7-
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" />
8-
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
6+
<link
7+
rel="stylesheet"
8+
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"
9+
/>
10+
<script
11+
type="text/javascript"
12+
src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"
13+
></script>
914
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
1015
<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.4.1/knockout-debug.js"></script>
11-
<link rel="stylesheet" href="https://unpkg.com/survey-knockout/survey.css" />
16+
<link
17+
rel="stylesheet"
18+
href="https://unpkg.com/survey-knockout/survey.css"
19+
/>
1220
<link rel="stylesheet" href="./index.css" />
13-
</head>
21+
</head>
1422

15-
<body>
16-
<a class="fork_me_on_github" href="https://github.com/surveyjs/surveyjs-aspnet-mvc" target="_blank">
17-
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/a6677b08c955af8400f44c6298f40e7d19cc5b2d/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677261795f3664366436642e706e67"
18-
alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png">
23+
<body>
24+
<a
25+
class="fork_me_on_github"
26+
href="https://github.com/surveyjs/surveyjs-aspnet-mvc"
27+
target="_blank"
28+
>
29+
<img
30+
style="position: absolute; top: 0; right: 0; border: 0;"
31+
src="https://camo.githubusercontent.com/a6677b08c955af8400f44c6298f40e7d19cc5b2d/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677261795f3664366436642e706e67"
32+
alt="Fork me on GitHub"
33+
data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png"
34+
/>
1935
</a>
2036
<div class="sv_main sv_frame sv_default_css">
21-
<div class="sv_custom_header"></div>
22-
<div class="sv_container">
23-
<div class="sv_header">
24-
<h3>SurveyJS custom service ASP.NET Core example</h3>
25-
<p>Below you can see the list of available surveys you can edit, run and see the results</p>
26-
</div>
27-
<div class="sv_body">
28-
<div id="surveys-list" class="surveys-list">
29-
<section>
30-
<button data-bind="click: function() { createSurvey('NewSurvey' + Date.now(), loadSurveys); }">Add</button>
31-
</section>
32-
<table class="table table-striped">
33-
<tbody>
34-
<!-- ko foreach: availableSurveys -->
35-
<tr>
36-
<td data-bind="text: name"></td>
37-
<td>
38-
<a class="sv_button_link" data-bind="attr: { href: 'survey.html?id=' + ko.unwrap(id) }">Run</a>
39-
<a class="sv_button_link" data-bind="attr: { href: 'editor.html?id=' + ko.unwrap(id) }">Edit</a>
40-
<a class="sv_button_link" data-bind="attr: { href: 'results.html?id=' + ko.unwrap(id) }">Results</a>
41-
<span class="sv_button_link sv_button_delete" data-bind="click: function() { $parent.deleteSurvey(ko.unwrap(id), $parent.loadSurveys); }">Delete</span>
42-
</td>
43-
</tr>
44-
<!-- /ko -->
45-
</tbody>
46-
</table>
47-
</div>
48-
</div>
37+
<div class="sv_custom_header"></div>
38+
<div class="sv_container">
39+
<div class="sv_header">
40+
<h3>SurveyJS custom service ASP.NET Core example</h3>
41+
<p>
42+
Below you can see the list of available surveys you can edit, run
43+
and see the results
44+
</p>
45+
</div>
46+
<div class="sv_body">
47+
<div id="surveys-list" class="surveys-list">
48+
<section>
49+
<button
50+
data-bind="click: function() { createSurvey('NewSurvey' + Date.now(), loadSurveys); }"
51+
>
52+
Add
53+
</button>
54+
</section>
55+
<table class="table table-striped">
56+
<tbody>
57+
<!-- ko foreach: availableSurveys -->
58+
<tr>
59+
<td data-bind="text: name"></td>
60+
<td>
61+
<a
62+
class="sv_button_link"
63+
data-bind="attr: { href: 'survey.html?id=' + ko.unwrap(id) }"
64+
>Run</a
65+
>
66+
<a
67+
class="sv_button_link"
68+
data-bind="attr: { href: 'survey-creator.html?id=' + ko.unwrap(id) }"
69+
>Edit</a
70+
>
71+
<a
72+
class="sv_button_link"
73+
data-bind="attr: { href: 'results.html?id=' + ko.unwrap(id) }"
74+
>Results</a
75+
>
76+
<span
77+
class="sv_button_link sv_button_delete"
78+
data-bind="click: function() { $parent.deleteSurvey(ko.unwrap(id), $parent.loadSurveys); }"
79+
>Delete</span
80+
>
81+
</td>
82+
</tr>
83+
<!-- /ko -->
84+
</tbody>
85+
</table>
86+
</div>
4987
</div>
88+
</div>
5089
</div>
51-
</body>
52-
53-
<script src="index.js"></script>
90+
</body>
5491

55-
</html>
92+
<script src="index.js"></script>
93+
</html>

wwwroot/survey-creator.html

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>SurveyJS Creator</title>
6+
<script
7+
src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.0/ace.min.js"
8+
type="text/javascript"
9+
charset="utf-8"
10+
></script>
11+
<script
12+
src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.0/worker-json.js"
13+
type="text/javascript"
14+
charset="utf-8"
15+
></script>
16+
<script
17+
src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.0/mode-json.js"
18+
type="text/javascript"
19+
charset="utf-8"
20+
></script>
21+
22+
<link
23+
rel="stylesheet"
24+
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"
25+
/>
26+
<script
27+
type="text/javascript"
28+
src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"
29+
></script>
30+
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
31+
<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.4.1/knockout-debug.js"></script>
32+
<script src="https://unpkg.com/survey-knockout"></script>
33+
<link
34+
rel="stylesheet"
35+
href="https://unpkg.com/survey-knockout/survey.css"
36+
/>
37+
38+
<script src="https://unpkg.com/surveyjs-creator"></script>
39+
<link
40+
rel="stylesheet"
41+
href="https://unpkg.com/surveyjs-creator/survey-creator.css"
42+
/>
43+
<link rel="stylesheet" href="./index.css" />
44+
</head>
45+
46+
<body>
47+
<a
48+
class="fork_me_on_github"
49+
href="https://github.com/surveyjs/surveyjs-aspnet-mvc"
50+
target="_blank"
51+
>
52+
<img
53+
style="position: absolute; top: 0; right: 0; border: 0;"
54+
src="https://camo.githubusercontent.com/a6677b08c955af8400f44c6298f40e7d19cc5b2d/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677261795f3664366436642e706e67"
55+
alt="Fork me on GitHub"
56+
data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png"
57+
/>
58+
</a>
59+
<div class="survey-page-header">
60+
<div class="sv_main survey-page-header-content">
61+
<button onclick="window.location = '/'">&lt&nbspBack</button>
62+
</div>
63+
</div>
64+
<div class="sv_main sv_frame sv_default_css">
65+
<div class="sv_custom_header"></div>
66+
<div class="sv_container">
67+
<div class="sv_header">
68+
<h3>
69+
<span
70+
id="sjs_survey_creator_title_edit"
71+
class="editor_title_edit"
72+
style="display: none;"
73+
>
74+
<input
75+
style="border-top: none; border-left: none; border-right: none; outline: none;"
76+
/>
77+
<span
78+
class="btn btn-success"
79+
onclick="postEdit()"
80+
style="border-radius: 2px; margin-top: -8px; background-color: #1ab394; border-color: #1ab394;"
81+
>Update</span
82+
>
83+
<span
84+
class="btn btn-warning"
85+
onclick="cancelEdit()"
86+
style="border-radius: 2px; margin-top: -8px;"
87+
>Cancel</span
88+
>
89+
</span>
90+
<span id="sjs_survey_creator_title_show">
91+
<span
92+
style="padding-top: 1px; height: 39px; display: inline-block;"
93+
></span>
94+
<span
95+
class="edit-survey-name"
96+
onclick="startEdit()"
97+
title="Change Name"
98+
>
99+
<img
100+
class="edit-icon"
101+
src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDI0IDI0IiB4bWw6c3BhY2U9InByZXNlcnZlIj48Zz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZmlsbD0iIzFBQjM5NCIgZD0iTTE5LDRsLTksOWw0LDRsOS05TDE5LDR6Ii8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiMxQUIzOTQiIGQ9Ik04LDE1djRoNEw4LDE1eiIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBmaWxsPSIjMUFCMzk0IiBkPSJNMSwxN3YyaDR2LTJIMXoiLz48L2c+PC9zdmc+"
102+
style="width:24px; height:24px; margin-top: -5px;"
103+
/>
104+
</span>
105+
</span>
106+
</h3>
107+
</div>
108+
<div class="sv_body">
109+
<div id="survey-creator"></div>
110+
</div>
111+
</div>
112+
</div>
113+
114+
<script src="./survey-creator.js"></script>
115+
</body>
116+
</html>

0 commit comments

Comments
 (0)