esercizi js
This commit is contained in:
176
.idea/workspace.xml
generated
176
.idea/workspace.xml
generated
@@ -1,7 +1,9 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="f405bcb8-0de2-4a3f-bdf4-b8ba34c0c82e" name="Default" comment="" />
|
<list default="true" id="f405bcb8-0de2-4a3f-bdf4-b8ba34c0c82e" name="Default" comment="">
|
||||||
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
||||||
|
</list>
|
||||||
<ignored path="unisa 14-15 tsw.iws" />
|
<ignored path="unisa 14-15 tsw.iws" />
|
||||||
<ignored path=".idea/workspace.xml" />
|
<ignored path=".idea/workspace.xml" />
|
||||||
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||||
@@ -24,12 +26,15 @@
|
|||||||
</component>
|
</component>
|
||||||
<component name="FileEditorManager">
|
<component name="FileEditorManager">
|
||||||
<leaf>
|
<leaf>
|
||||||
<file leaf-file-name="js1.html" pinned="false" current-in-tab="true">
|
<file leaf-file-name="js_20.html" pinned="false" current-in-tab="true">
|
||||||
<entry file="file://$PROJECT_DIR$/js1.html">
|
<entry file="file://$PROJECT_DIR$/js_20.html">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="1.5925926" vertical-offset="0" max-vertical-offset="2465">
|
<state vertical-scroll-proportion="0.33333334" vertical-offset="0" max-vertical-offset="918">
|
||||||
<caret line="86" column="9" selection-start-line="86" selection-start-column="9" selection-end-line="86" selection-end-column="9" />
|
<caret line="18" column="24" selection-start-line="18" selection-start-column="24" selection-end-line="18" selection-end-column="24" />
|
||||||
<folding />
|
<folding>
|
||||||
|
<element signature="e#245#394#0" expanded="false" />
|
||||||
|
<element signature="e#510#663#0" expanded="false" />
|
||||||
|
</folding>
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
@@ -43,6 +48,16 @@
|
|||||||
<option name="CHANGED_PATHS">
|
<option name="CHANGED_PATHS">
|
||||||
<list>
|
<list>
|
||||||
<option value="$PROJECT_DIR$/js1.html" />
|
<option value="$PROJECT_DIR$/js1.html" />
|
||||||
|
<option value="$PROJECT_DIR$/js2.html" />
|
||||||
|
<option value="$PROJECT_DIR$/js3.html" />
|
||||||
|
<option value="$PROJECT_DIR$/js_1.html" />
|
||||||
|
<option value="$PROJECT_DIR$/js_2.html" />
|
||||||
|
<option value="$PROJECT_DIR$/js_3.html" />
|
||||||
|
<option value="$PROJECT_DIR$/js_7.html" />
|
||||||
|
<option value="$PROJECT_DIR$/js_8.html" />
|
||||||
|
<option value="$PROJECT_DIR$/js_9.html" />
|
||||||
|
<option value="$PROJECT_DIR$/js_10.html" />
|
||||||
|
<option value="$PROJECT_DIR$/js_20.html" />
|
||||||
</list>
|
</list>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
@@ -116,7 +131,7 @@
|
|||||||
</component>
|
</component>
|
||||||
<component name="PropertiesComponent">
|
<component name="PropertiesComponent">
|
||||||
<property name="WebServerToolWindowFactoryState" value="false" />
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
||||||
<property name="last_opened_file_path" value="$PROJECT_DIR$/js1.html" />
|
<property name="last_opened_file_path" value="$PROJECT_DIR$/js3.html" />
|
||||||
<property name="HbShouldOpenHtmlAsHb" value="" />
|
<property name="HbShouldOpenHtmlAsHb" value="" />
|
||||||
<property name="recentsLimit" value="5" />
|
<property name="recentsLimit" value="5" />
|
||||||
<property name="options.lastSelected" value="configurable.group.appearance" />
|
<property name="options.lastSelected" value="configurable.group.appearance" />
|
||||||
@@ -126,11 +141,20 @@
|
|||||||
<property name="DefaultHtmlFileTemplate" value="Html5" />
|
<property name="DefaultHtmlFileTemplate" value="Html5" />
|
||||||
<property name="FullScreen" value="false" />
|
<property name="FullScreen" value="false" />
|
||||||
</component>
|
</component>
|
||||||
|
<component name="RecentsManager">
|
||||||
|
<key name="CopyFile.RECENT_KEYS">
|
||||||
|
<recent name="F:\Codes\Html\unisa 14-15 tsw" />
|
||||||
|
</key>
|
||||||
|
</component>
|
||||||
<component name="RunManager" selected="JavaScript Debug.test ff">
|
<component name="RunManager" selected="JavaScript Debug.test ff">
|
||||||
|
<configuration default="true" type="DartCommandLineRunConfigurationType" factoryName="Dart Command Line Application">
|
||||||
|
<method />
|
||||||
|
</configuration>
|
||||||
<configuration default="true" type="DartUnitRunConfigurationType" factoryName="DartUnit">
|
<configuration default="true" type="DartUnitRunConfigurationType" factoryName="DartUnit">
|
||||||
<method />
|
<method />
|
||||||
</configuration>
|
</configuration>
|
||||||
<configuration default="true" type="DartCommandLineRunConfigurationType" factoryName="Dart Command Line Application">
|
<configuration default="true" type="JavaScriptTestRunnerKarma" factoryName="Karma" config-file="">
|
||||||
|
<envs />
|
||||||
<method />
|
<method />
|
||||||
</configuration>
|
</configuration>
|
||||||
<configuration default="true" type="JSTestDriver:ConfigurationType" factoryName="JsTestDriver">
|
<configuration default="true" type="JSTestDriver:ConfigurationType" factoryName="JsTestDriver">
|
||||||
@@ -140,10 +164,6 @@
|
|||||||
<setting name="preferredDebugBrowser" value="Chrome" />
|
<setting name="preferredDebugBrowser" value="Chrome" />
|
||||||
<method />
|
<method />
|
||||||
</configuration>
|
</configuration>
|
||||||
<configuration default="true" type="JavaScriptTestRunnerKarma" factoryName="Karma" config-file="">
|
|
||||||
<envs />
|
|
||||||
<method />
|
|
||||||
</configuration>
|
|
||||||
<configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
|
<configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
|
||||||
<method />
|
<method />
|
||||||
</configuration>
|
</configuration>
|
||||||
@@ -157,9 +177,14 @@
|
|||||||
<method />
|
<method />
|
||||||
</configuration>
|
</configuration>
|
||||||
<configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
|
<configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
|
||||||
|
<node-options />
|
||||||
|
<gulpfile />
|
||||||
|
<tasks />
|
||||||
|
<pass-parent-envs>true</pass-parent-envs>
|
||||||
|
<envs />
|
||||||
<method />
|
<method />
|
||||||
</configuration>
|
</configuration>
|
||||||
<configuration default="false" name="test ff" type="JavascriptDebugType" factoryName="JavaScript Debug" engineId="a7bb68e0-33c0-4d6f-a81a-aac1fdb870c8" uri="http://localhost:63342/unisa 14-15 tsw/js1.html">
|
<configuration default="false" name="test ff" type="JavascriptDebugType" factoryName="JavaScript Debug" engineId="a7bb68e0-33c0-4d6f-a81a-aac1fdb870c8" uri="http://localhost:63342/unisa 14-15 tsw/js_1.html">
|
||||||
<RunnerSettings RunnerId="JavascriptDebugRunner" />
|
<RunnerSettings RunnerId="JavascriptDebugRunner" />
|
||||||
<ConfigurationWrapper RunnerId="JavascriptDebugRunner" />
|
<ConfigurationWrapper RunnerId="JavascriptDebugRunner" />
|
||||||
<method />
|
<method />
|
||||||
@@ -185,24 +210,24 @@
|
|||||||
<frame x="-8" y="-8" width="1936" height="1096" extended-state="6" />
|
<frame x="-8" y="-8" width="1936" height="1096" extended-state="6" />
|
||||||
<editor active="false" />
|
<editor active="false" />
|
||||||
<layout>
|
<layout>
|
||||||
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
<window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
||||||
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
||||||
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
|
||||||
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
|
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
|
|
||||||
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
|
||||||
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
||||||
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
||||||
</layout>
|
</layout>
|
||||||
</component>
|
</component>
|
||||||
<component name="Vcs.Log.UiProperties">
|
<component name="Vcs.Log.UiProperties">
|
||||||
@@ -226,19 +251,116 @@
|
|||||||
<watches-manager />
|
<watches-manager />
|
||||||
</component>
|
</component>
|
||||||
<component name="editorHistoryManager">
|
<component name="editorHistoryManager">
|
||||||
<entry file="file://$PROJECT_DIR$/css1.html">
|
<entry file="file://$PROJECT_DIR$/js_20.html">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="944">
|
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="850">
|
||||||
|
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||||
|
<folding>
|
||||||
|
<element signature="e#245#394#0" expanded="false" />
|
||||||
|
<element signature="e#510#663#0" expanded="false" />
|
||||||
|
</folding>
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/js3.html">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="1139">
|
||||||
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||||
<folding />
|
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/js1.html">
|
<entry file="file://$PROJECT_DIR$/js1.html">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="1.5925926" vertical-offset="0" max-vertical-offset="2465">
|
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="2465">
|
||||||
<caret line="86" column="9" selection-start-line="86" selection-start-column="9" selection-end-line="86" selection-end-column="9" />
|
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||||
<folding />
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/css1.html">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="944">
|
||||||
|
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/js1.html">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state vertical-scroll-proportion="0.25925925" vertical-offset="1462" max-vertical-offset="2465">
|
||||||
|
<caret line="100" column="0" selection-start-line="100" selection-start-column="0" selection-end-line="100" selection-end-column="0" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/js2.html">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state vertical-scroll-proportion="0.4814815" vertical-offset="408" max-vertical-offset="1326">
|
||||||
|
<caret line="50" column="30" selection-start-line="50" selection-start-column="30" selection-end-line="50" selection-end-column="30" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/js3.html">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state vertical-scroll-proportion="0.34313726" vertical-offset="195" max-vertical-offset="1139">
|
||||||
|
<caret line="30" column="0" selection-start-line="30" selection-start-column="0" selection-end-line="30" selection-end-column="0" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/js_1.html">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="918">
|
||||||
|
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/js_2.html">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="918">
|
||||||
|
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/js_3.html">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="918">
|
||||||
|
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/js_7.html">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="918">
|
||||||
|
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/js_8.html">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="918">
|
||||||
|
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/js_9.html">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="1139">
|
||||||
|
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/js_10.html">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state vertical-scroll-proportion="-11.769231" vertical-offset="0" max-vertical-offset="918">
|
||||||
|
<caret line="18" column="26" selection-start-line="18" selection-start-column="26" selection-end-line="18" selection-end-column="26" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/js_20.html">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state vertical-scroll-proportion="0.33333334" vertical-offset="0" max-vertical-offset="918">
|
||||||
|
<caret line="18" column="24" selection-start-line="18" selection-start-column="24" selection-end-line="18" selection-end-column="24" />
|
||||||
|
<folding>
|
||||||
|
<element signature="e#245#394#0" expanded="false" />
|
||||||
|
<element signature="e#510#663#0" expanded="false" />
|
||||||
|
</folding>
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
|
|||||||
73
js2.html
Normal file
73
js2.html
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head lang="en">
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title></title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
var a = [1,2,3,4,5];
|
||||||
|
|
||||||
|
for(i=0;i< a.length;i++){
|
||||||
|
document.writeln(a[i]);
|
||||||
|
}
|
||||||
|
|
||||||
|
(function () {document.writeln("ciao")})();
|
||||||
|
|
||||||
|
function set_property (nome,cognome){
|
||||||
|
return nome + cognome;
|
||||||
|
}
|
||||||
|
|
||||||
|
set_property_gino_paolo=set_property.bind(null,"gino","paolo");
|
||||||
|
document.writeln(set_property_gino_paolo());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
oggetto = {nome:null,cognome:null,makealert:function(){alert("yoo")}};
|
||||||
|
function set_n_c (nome,cognome) {
|
||||||
|
this.nome = nome;
|
||||||
|
this.cognome = cognome;
|
||||||
|
//this.makealert();
|
||||||
|
}
|
||||||
|
|
||||||
|
(set_n_c.bind(oggetto,"mario","rossi"))();
|
||||||
|
|
||||||
|
document.writeln(oggetto.nome);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
var global="glo";
|
||||||
|
function out(){
|
||||||
|
var global ="loac";
|
||||||
|
function int(){
|
||||||
|
return global;
|
||||||
|
}
|
||||||
|
return int;
|
||||||
|
}
|
||||||
|
|
||||||
|
document.writeln(out()());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
var global="glo";
|
||||||
|
function out2(){
|
||||||
|
var global ="loac";
|
||||||
|
return (new Function ("return global;"));
|
||||||
|
}
|
||||||
|
|
||||||
|
document.writeln(out2()());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
62
js3.html
Normal file
62
js3.html
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head lang="en">
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title></title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
var a = 5;
|
||||||
|
|
||||||
|
function f(){return a;}
|
||||||
|
|
||||||
|
document.writeln(f());
|
||||||
|
|
||||||
|
var a = 10;
|
||||||
|
|
||||||
|
document.writeln(f());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
oggetto = {
|
||||||
|
nome:"n",
|
||||||
|
cognome:"c"
|
||||||
|
}
|
||||||
|
|
||||||
|
if ("nome" in oggetto)
|
||||||
|
document.writeln(oggetto.nome);
|
||||||
|
|
||||||
|
|
||||||
|
f2.counter=0;
|
||||||
|
function f2(){
|
||||||
|
document.writeln(arguments.length);
|
||||||
|
document.writeln(arguments.callee.length);
|
||||||
|
document.writeln(arguments.callee.counter);
|
||||||
|
document.writeln(f2.counter);
|
||||||
|
|
||||||
|
if (f2.counter < 100){
|
||||||
|
f2.counter++;
|
||||||
|
document.writeln("recursive " + f2.counter);
|
||||||
|
f2();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
f2("a","b","c","d");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
22
js_1.html
Normal file
22
js_1.html
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head lang="en">
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title></title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
rit = confirm("Accettare il contratto?");
|
||||||
|
if (rit)
|
||||||
|
document.writeln("Accettato");
|
||||||
|
else
|
||||||
|
document.writeln("Rifiutato");
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
49
js_10.html
Normal file
49
js_10.html
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head lang="en">
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title></title>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
sum=[];
|
||||||
|
i="beg";
|
||||||
|
while (true) {
|
||||||
|
i = prompt("Insert n or end");
|
||||||
|
if (i == "end")
|
||||||
|
break;
|
||||||
|
for (;!i || isNaN(i) ;)
|
||||||
|
i= prompt("Err.Insert n");
|
||||||
|
sum.push(parseFloat(i));
|
||||||
|
}
|
||||||
|
|
||||||
|
tot=0;
|
||||||
|
for (i=0;i<sum.length;i++){
|
||||||
|
tot = tot + sum[i];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
document.writeln("<table>");
|
||||||
|
|
||||||
|
for (i=0;i<sum.length;i++){
|
||||||
|
document.writeln("<tr><td>" + sum[i] +"</td></tr>");
|
||||||
|
}
|
||||||
|
document.writeln("<tr><td>" + tot / sum.length +"</td></tr>");
|
||||||
|
|
||||||
|
document.writeln("</table>");
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
28
js_2.html
Normal file
28
js_2.html
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head lang="en">
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title></title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
|
||||||
|
function f (n) {
|
||||||
|
var base = n-1;
|
||||||
|
if (n > 1)
|
||||||
|
return n * base * f( n - 2);
|
||||||
|
else
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (i = 1 ; i< 10 ;i++)
|
||||||
|
document.writeln(f(i) + "<br>");
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
53
js_20.html
Normal file
53
js_20.html
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head lang="en">
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title></title>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
function costruisci (input){
|
||||||
|
|
||||||
|
if (input == "somma"){
|
||||||
|
|
||||||
|
f = function (a,b){
|
||||||
|
if (!isNaN(a) && !isNaN(b))
|
||||||
|
return a + b;
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
return f;
|
||||||
|
|
||||||
|
|
||||||
|
} else if (input == "molt"){
|
||||||
|
f = function (a,b){
|
||||||
|
if (!isNaN(a) && !isNaN(b))
|
||||||
|
return a * b;
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
return f;
|
||||||
|
|
||||||
|
}else
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
document.writeln((costruisci("somma"))(10,20));
|
||||||
|
document.writeln((costruisci("molt"))(10,20));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
31
js_3.html
Normal file
31
js_3.html
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head lang="en">
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title></title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
function f (n) {
|
||||||
|
var base = n-1;
|
||||||
|
if (n > 1)
|
||||||
|
return n * base * f( n - 2);
|
||||||
|
else
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
value = prompt("Inserire numero tra 1 e 15");
|
||||||
|
|
||||||
|
if ( value && !isNaN(value) && value>=1 && value<=15 )
|
||||||
|
document.writeln(f(value));
|
||||||
|
else
|
||||||
|
alert("Error");
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
33
js_7.html
Normal file
33
js_7.html
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head lang="en">
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title></title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
nome = prompt("Nome");
|
||||||
|
cognome = prompt("Cognome");
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<h1> Campionato di Pallastrada</h1>
|
||||||
|
|
||||||
|
<p>Classifica</p>
|
||||||
|
|
||||||
|
<span id="message"></span>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
document.getElementById("message").innerHTML = "Ciao " + nome + " " + cognome +
|
||||||
|
" ci vediamo fra 4 anni";
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
35
js_8.html
Normal file
35
js_8.html
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head lang="en">
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title></title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
s = prompt("Sito da visitare: 1 - 2 - 3 - 4");
|
||||||
|
l = null;
|
||||||
|
if (s && !isNaN(s)){
|
||||||
|
switch (s){
|
||||||
|
case "1": l="http://sito1.com";break;
|
||||||
|
case "2": l="http://sito2.com";break;
|
||||||
|
case "3": l="http://sito3.com";break;
|
||||||
|
case "4": l="http://sito4.com";break;
|
||||||
|
}
|
||||||
|
if (l)
|
||||||
|
location.href=l;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
62
js_9.html
Normal file
62
js_9.html
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head lang="en">
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title></title>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
input = prompt ("Colore titolo, testo, sfondo e grandezza font");
|
||||||
|
var res = input.split(" ");
|
||||||
|
if (res[0] == "*")
|
||||||
|
document.writeln("<link rel=\"stylesheet\" type=\"text/css\" href=\"mystyle.css\">");
|
||||||
|
else {
|
||||||
|
document.writeln("<style>");
|
||||||
|
|
||||||
|
if (res[0]==res[1] || res[0]==res[2] || res[1]==res[2] ){
|
||||||
|
res[0]="green";
|
||||||
|
res[1]="blue";
|
||||||
|
res[2]="red";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
document.writeln("h1,h2,h3,h4,h5,h6 {color:" + res[0] + ";font-size:" + res[3] + "}");
|
||||||
|
document.writeln("body {background-color:" + res[2] + "}");
|
||||||
|
document.writeln("p {color:" + res[1] + "}");
|
||||||
|
|
||||||
|
document.writeln("</style>");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
|
||||||
|
<h1> Titolo 1</h1>
|
||||||
|
<h2> Titolo 2</h2>
|
||||||
|
<h3> Titolo 3</h3>
|
||||||
|
<p>Ehi</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
h1s = document.getElementsByTagName("h1");
|
||||||
|
for (i = 0 ;i<h1s.length; i++)
|
||||||
|
h1s[i].style="font-size:3em;font-weight:bold";
|
||||||
|
h2s = document.getElementsByTagName("h2");
|
||||||
|
for (i = 0 ;i<h2s.length; i++)
|
||||||
|
h2s[i].style="font-size:1em";
|
||||||
|
h3s = document.getElementsByTagName("h3");
|
||||||
|
for (i = 0 ;i<h3s.length; i++)
|
||||||
|
h3s[i].style="font-size:1em;font-weight:bold;font-style=italic";
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user