Skip to content

Commit

Permalink
Update vanilla JS code examples
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanTsukanov committed Aug 19, 2024
1 parent 7425846 commit 9a17519
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion dashboard-table-view/html-css-js/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Table View - SurveyJS Dashboard

This example is used in the following help topic: [Table View for Survey Results in a JavaScript Application](https://surveyjs.io/dashboard/documentation/set-up-table-view/vanillajs). To run the example, open `index.html` in your browser.
This example is used in the following help topic: [Table View for Survey Results in a JavaScript Application](https://surveyjs.io/dashboard/documentation/set-up-table-view/html-css-javascript). To run the example, open `index.html` in your browser.
2 changes: 1 addition & 1 deletion dashboard-table-view/html-css-js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ const surveyDataTable = new SurveyAnalyticsTabulator.Tabulator(
);

document.addEventListener("DOMContentLoaded", function() {
surveyDataTable.render("surveyDataTable");
surveyDataTable.render(document.getElementById("surveyDataTable"));
});
4 changes: 0 additions & 4 deletions dashboard-table-view/knockout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ function generateData() {
return data;
}

Survey.slk(
"OWQyYzczMzktMWI5NS00OTMxLWE0YjgtMDRhMGY0NzZhOWZhJmRvbWFpbnM6c3VydmV5anMuaW8sc3VydmV5anN0ZXN0LmF6dXJld2Vic2l0ZXMubmV0OzE9MjIyNC0wMi0wOCwyPTIyMjQtMDItMDgsND0yMjI0LTAyLTA4"
);

const surveyDataTable = new SurveyAnalyticsTabulator.Tabulator(
survey,
generateData()
Expand Down
2 changes: 1 addition & 1 deletion get-started-analytics/html-css-js/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Get Started with SurveyJS Dashboard

This example is used in the following help topic: [Add SurveyJS Dashboard to a JavaScript Application](https://surveyjs.io/dashboard/documentation/get-started-vanillajs). To run the example, open `index.html` in your browser.
This example is used in the following help topic: [Add SurveyJS Dashboard to a JavaScript Application](https://surveyjs.io/dashboard/documentation/get-started-html-css-javascript). To run the example, open `index.html` in your browser.
4 changes: 0 additions & 4 deletions get-started-analytics/knockout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ const vizPanelOptions = {
allowHideQuestions: false
}

Survey.slk(
"OWQyYzczMzktMWI5NS00OTMxLWE0YjgtMDRhMGY0NzZhOWZhJmRvbWFpbnM6c3VydmV5anMuaW8sc3VydmV5anN0ZXN0LmF6dXJld2Vic2l0ZXMubmV0OzE9MjIyNC0wMi0wOCwyPTIyMjQtMDItMDgsND0yMjI0LTAyLTA4"
);

const vizPanel = new SurveyAnalytics.VisualizationPanel(
survey.getAllQuestions(),
surveyResults,
Expand Down
2 changes: 1 addition & 1 deletion get-started-creator/html-css-js/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Get Started with Survey Creator / Form Builder

This example is used in the following help topic: [Add Survey Creator / Form Builder to a JavaScript Application](https://surveyjs.io/survey-creator/documentation/get-started-vanillajs). To run the example, open `index.html` in your browser.
This example is used in the following help topic: [Add Survey Creator / Form Builder to a JavaScript Application](https://surveyjs.io/survey-creator/documentation/get-started-html-css-javascript). To run the example, open `index.html` in your browser.
2 changes: 1 addition & 1 deletion get-started-creator/html-css-js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ creator.saveSurveyFunc = (saveNo, callback) => {
// });

document.addEventListener("DOMContentLoaded", function() {
creator.render("surveyCreator");
creator.render(document.getElementById("surveyCreator"));
});

// function saveSurveyJson(url, json, saveNo, callback) {
Expand Down
2 changes: 1 addition & 1 deletion get-started-library/html-css-js/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Get Started with SurveyJS Form Library

This example is used in the following help topic: [Add a Survey to a JavaScript Application](https://surveyjs.io/form-library/documentation/get-started-vanillajs). To run the example, open `index.html` in your browser.
This example is used in the following help topic: [Add a Survey to a JavaScript Application](https://surveyjs.io/form-library/documentation/get-started-html-css-javascript). To run the example, open `index.html` in your browser.
2 changes: 1 addition & 1 deletion get-started-pdf/html-css-js/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Export Survey to PDF

This example is used in the following help topic: [Export Survey to PDF in a JavaScript Application](https://surveyjs.io/pdf-generator/documentation/get-started-vanillajs). To run the example, open `index.html` in your browser.
This example is used in the following help topic: [Export Survey to PDF in a JavaScript Application](https://surveyjs.io/pdf-generator/documentation/get-started-html-css-javascript). To run the example, open `index.html` in your browser.

0 comments on commit 9a17519

Please sign in to comment.