Commit bd17719e by Ruha

v2

1 parent c2b7614c
Pipeline #2593 for bd17719e skipped in 0 seconds
...@@ -23,6 +23,13 @@ ...@@ -23,6 +23,13 @@
</mappings> </mappings>
</serverdata> </serverdata>
</paths> </paths>
<paths name="myjino.ru">
<serverdata>
<mappings>
<mapping deploy="/" local="$PROJECT_DIR$" web="/" />
</mappings>
</serverdata>
</paths>
<paths name="test.onclinic"> <paths name="test.onclinic">
<serverdata> <serverdata>
<mappings> <mappings>
......
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptLibraryMappings">
<file url="PROJECT" libraries="{Jquery}" />
</component>
</project>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file \ No newline at end of file
<?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="f27ea491-44a7-4742-b6b4-1d473d258e2e" name="Default" comment="" /> <list default="true" id="f27ea491-44a7-4742-b6b4-1d473d258e2e" name="Default" comment="">
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/jsLibraryMappings.xml" />
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/vcs.xml" />
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/handler.php" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/deployment.xml" afterPath="$PROJECT_DIR$/.idea/deployment.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/yescenter.iml" afterPath="$PROJECT_DIR$/.idea/yescenter.iml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/css/additional.css" afterPath="$PROJECT_DIR$/css/additional.css" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/index.html" afterPath="$PROJECT_DIR$/index.html" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/js/common.js" afterPath="$PROJECT_DIR$/js/common.js" />
</list>
<ignored path="yescenter.iws" /> <ignored path="yescenter.iws" />
<ignored path=".idea/workspace.xml" /> <ignored path=".idea/workspace.xml" />
<ignored path=".idea/dataSources.local.xml" /> <ignored path=".idea/dataSources.local.xml" />
...@@ -21,7 +31,7 @@ ...@@ -21,7 +31,7 @@
<favorites_list name="yescenter" /> <favorites_list name="yescenter" />
</component> </component>
<component name="FileEditorManager"> <component name="FileEditorManager">
<leaf> <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file leaf-file-name="app.js" pinned="false" current-in-tab="false"> <file leaf-file-name="app.js" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/js/app.js"> <entry file="file://$PROJECT_DIR$/js/app.js">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
...@@ -37,28 +47,28 @@ ...@@ -37,28 +47,28 @@
<file leaf-file-name="index.html" pinned="false" current-in-tab="false"> <file leaf-file-name="index.html" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/index.html"> <entry file="file://$PROJECT_DIR$/index.html">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="192"> <state relative-caret-position="715">
<caret line="264" column="26" selection-start-line="264" selection-start-column="16" selection-end-line="264" selection-end-column="26" /> <caret line="319" column="49" selection-start-line="319" selection-start-column="49" selection-end-line="319" selection-end-column="49" />
<folding /> <folding />
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file leaf-file-name="additional.css" pinned="false" current-in-tab="true"> <file leaf-file-name="additional.css" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/css/additional.css"> <entry file="file://$PROJECT_DIR$/css/additional.css">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="168"> <state relative-caret-position="451">
<caret line="7" column="0" selection-start-line="7" selection-start-column="0" selection-end-line="7" selection-end-column="0" /> <caret line="67" column="16" selection-start-line="67" selection-start-column="16" selection-end-line="67" selection-end-column="16" />
<folding /> <folding />
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file leaf-file-name="common.js" pinned="false" current-in-tab="false"> <file leaf-file-name="common.js" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/js/common.js"> <entry file="file://$PROJECT_DIR$/js/common.js">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="409"> <state relative-caret-position="212">
<caret line="135" column="36" selection-start-line="135" selection-start-column="36" selection-end-line="135" selection-end-column="36" /> <caret line="186" column="36" selection-start-line="186" selection-start-column="36" selection-end-line="186" selection-end-column="36" />
<folding> <folding>
<element signature="n#!!doc" expanded="true" /> <element signature="n#!!doc" expanded="true" />
</folding> </folding>
...@@ -66,6 +76,16 @@ ...@@ -66,6 +76,16 @@
</provider> </provider>
</entry> </entry>
</file> </file>
<file leaf-file-name="handler.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/handler.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="427">
<caret line="51" column="22" selection-start-line="51" selection-start-column="22" selection-end-line="51" selection-end-column="22" />
<folding />
</state>
</provider>
</entry>
</file>
</leaf> </leaf>
</component> </component>
<component name="FileTemplateManagerImpl"> <component name="FileTemplateManagerImpl">
...@@ -75,12 +95,16 @@ ...@@ -75,12 +95,16 @@
</list> </list>
</option> </option>
</component> </component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="IdeDocumentHistory"> <component name="IdeDocumentHistory">
<option name="CHANGED_PATHS"> <option name="CHANGED_PATHS">
<list> <list>
<option value="$PROJECT_DIR$/css/additional.css" />
<option value="$PROJECT_DIR$/index.html" /> <option value="$PROJECT_DIR$/index.html" />
<option value="$PROJECT_DIR$/handler.php" />
<option value="$PROJECT_DIR$/js/common.js" /> <option value="$PROJECT_DIR$/js/common.js" />
<option value="$PROJECT_DIR$/css/additional.css" />
</list> </list>
</option> </option>
</component> </component>
...@@ -92,8 +116,8 @@ ...@@ -92,8 +116,8 @@
</component> </component>
<component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" /> <component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />
<component name="ProjectFrameBounds"> <component name="ProjectFrameBounds">
<option name="x" value="-7" /> <option name="x" value="-8" />
<option name="y" value="97" /> <option name="y" value="38" />
<option name="width" value="1936" /> <option name="width" value="1936" />
<option name="height" value="1050" /> <option name="height" value="1050" />
</component> </component>
...@@ -122,6 +146,7 @@ ...@@ -122,6 +146,7 @@
<foldersAlwaysOnTop value="true" /> <foldersAlwaysOnTop value="true" />
</navigator> </navigator>
<panes> <panes>
<pane id="Scope" />
<pane id="ProjectPane"> <pane id="ProjectPane">
<subPane> <subPane>
<PATH> <PATH>
...@@ -154,33 +179,23 @@ ...@@ -154,33 +179,23 @@
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT> </PATH_ELEMENT>
</PATH> </PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="yescenter" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="yescenter" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="css" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
</PATH>
</subPane> </subPane>
</pane> </pane>
<pane id="Scope" />
<pane id="Scratches" /> <pane id="Scratches" />
</panes> </panes>
</component> </component>
<component name="PropertiesComponent"> <component name="PropertiesComponent">
<property name="settings.editor.selected.configurable" value="configurable.group.appearance" /> <property name="settings.editor.selected.configurable" value="JavaScript.Libraries" />
<property name="settings.editor.splitter.proportion" value="0.2" /> <property name="settings.editor.splitter.proportion" value="0.2" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" /> <property name="last_opened_file_path" value="$PROJECT_DIR$/../landing" />
<property name="WebServerToolWindowFactoryState" value="true" /> <property name="WebServerToolWindowFactoryState" value="true" />
<property name="list.type.of.created.stylesheet" value="CSS" /> <property name="list.type.of.created.stylesheet" value="CSS" />
<property name="js-jscs-nodeInterpreter" value="C:\Program Files\nodejs\node.exe" /> <property name="js-jscs-nodeInterpreter" value="C:\Program Files\nodejs\node.exe" />
<property name="WebServerToolWindowPanel.toolwindow.show.size" value="false" />
<property name="WebServerToolWindowPanel.toolwindow.show.date" value="false" />
<property name="WebServerToolWindowPanel.toolwindow.show.permissions" value="false" />
<property name="WebServerToolWindowPanel.toolwindow.highlight.symlinks" value="true" />
<property name="WebServerToolWindowPanel.toolwindow.highlight.mappings" value="true" />
</component> </component>
<component name="RunManager"> <component name="RunManager">
<configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug"> <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
...@@ -194,6 +209,12 @@ ...@@ -194,6 +209,12 @@
<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-interpreter>project</node-interpreter>
<node-options />
<gulpfile />
<tasks />
<arguments />
<envs />
<method /> <method />
</configuration> </configuration>
<configuration default="true" type="js.build_tools.npm" factoryName="npm"> <configuration default="true" type="js.build_tools.npm" factoryName="npm">
...@@ -208,27 +229,28 @@ ...@@ -208,27 +229,28 @@
<option name="remove_strategy" value="false" /> <option name="remove_strategy" value="false" />
</component> </component>
<component name="ToolWindowManager"> <component name="ToolWindowManager">
<frame x="-7" y="97" width="1936" height="1050" extended-state="0" /> <frame x="-8" y="38" width="1936" height="1050" extended-state="6" />
<editor active="true" /> <editor active="false" />
<layout> <layout>
<window_info id="Remote Host" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> <window_info id="Remote Host" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32995737" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25266525" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" /> <window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.2553305" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" 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" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" 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" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" /> <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> <window_info id="File Transfer" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.3293348" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" 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" show_stripe_button="true" weight="0.25" 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" show_stripe_button="true" 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" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" /> <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" 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" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" 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" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" 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="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" 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" show_stripe_button="true" 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" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" 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" show_stripe_button="true" 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" show_stripe_button="true" weight="0.25" 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" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
</layout> </layout>
</component> </component>
<component name="VcsContentAnnotationSettings"> <component name="VcsContentAnnotationSettings">
...@@ -241,7 +263,7 @@ ...@@ -241,7 +263,7 @@
<component name="editorHistoryManager"> <component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/js/app.js"> <entry file="file://$PROJECT_DIR$/js/app.js">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="277"> <state relative-caret-position="48">
<caret line="2" column="23334" selection-start-line="2" selection-start-column="23330" selection-end-line="2" selection-end-column="23334" /> <caret line="2" column="23334" selection-start-line="2" selection-start-column="23330" selection-end-line="2" selection-end-column="23334" />
<folding> <folding>
<element signature="n#!!doc" expanded="true" /> <element signature="n#!!doc" expanded="true" />
...@@ -249,9 +271,17 @@ ...@@ -249,9 +271,17 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/css/style.css"> <entry file="file://$PROJECT_DIR$/index.html">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-7488"> <state relative-caret-position="6336">
<caret line="264" column="26" selection-start-line="264" selection-start-column="16" selection-end-line="264" selection-end-column="26" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/css/additional.css">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<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 /> <folding />
</state> </state>
...@@ -259,7 +289,7 @@ ...@@ -259,7 +289,7 @@
</entry> </entry>
<entry file="file://$PROJECT_DIR$/js/common.js"> <entry file="file://$PROJECT_DIR$/js/common.js">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="409"> <state relative-caret-position="3240">
<caret line="135" column="36" selection-start-line="135" selection-start-column="36" selection-end-line="135" selection-end-column="36" /> <caret line="135" column="36" selection-start-line="135" selection-start-column="36" selection-end-line="135" selection-end-column="36" />
<folding> <folding>
<element signature="n#!!doc" expanded="true" /> <element signature="n#!!doc" expanded="true" />
...@@ -267,21 +297,57 @@ ...@@ -267,21 +297,57 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/index.html"> <entry file="file://$PROJECT_DIR$/css/style.css">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="192"> <state relative-caret-position="-7488">
<caret line="264" column="26" selection-start-line="264" selection-start-column="16" selection-end-line="264" selection-end-column="26" /> <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding /> <folding />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/js/app.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="277">
<caret line="2" column="23334" selection-start-line="2" selection-start-column="23330" selection-end-line="2" selection-end-column="23334" />
<folding>
<element signature="n#!!doc" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/css/additional.css"> <entry file="file://$PROJECT_DIR$/css/additional.css">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="168"> <state relative-caret-position="451">
<caret line="7" column="0" selection-start-line="7" selection-start-column="0" selection-end-line="7" selection-end-column="0" /> <caret line="67" column="16" selection-start-line="67" selection-start-column="16" selection-end-line="67" selection-end-column="16" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/index.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="715">
<caret line="319" column="49" selection-start-line="319" selection-start-column="49" selection-end-line="319" selection-end-column="49" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/handler.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="427">
<caret line="51" column="22" selection-start-line="51" selection-start-column="22" selection-end-line="51" selection-end-column="22" />
<folding /> <folding />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/js/common.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="212">
<caret line="186" column="36" selection-start-line="186" selection-start-column="36" selection-end-line="186" selection-end-column="36" />
<folding>
<element signature="n#!!doc" expanded="true" />
</folding>
</state>
</provider>
</entry>
</component> </component>
</project> </project>
\ No newline at end of file \ No newline at end of file
...@@ -4,5 +4,6 @@ ...@@ -4,5 +4,6 @@
<content url="file://$MODULE_DIR$" /> <content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" /> <orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Jquery" level="application" />
</component> </component>
</module> </module>
\ No newline at end of file \ No newline at end of file
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
.button { .button {
display: block; display: block;
width: 306px; width: 336px;
height: 48px; height: 48px;
line-height: 48px; line-height: 48px;
-webkit-border-radius: 7px; -webkit-border-radius: 7px;
...@@ -41,6 +41,14 @@ ...@@ -41,6 +41,14 @@
text-align: right; text-align: right;
height: 28px; height: 28px;
} }
.modal-close {
text-align: right;
}
.modal-close-xray {
padding: 18px;
position: relative;
background: url("/img/modal/close.svg") no-repeat 96% 15px;
}
.modal-body-header { .modal-body-header {
font-size: 36px; font-size: 36px;
...@@ -49,10 +57,50 @@ ...@@ -49,10 +57,50 @@
.modal-body-header small { .modal-body-header small {
font-size: 14px; font-size: 14px;
display: block;
padding: 0 0 37px;
} }
.modal-label {
display: block;
font-size:14px;
font-weight: bold;
margin:auto;
padding:0 40px;
}
.time {
width:152px;
display: inline-block;
float:left;
}
.time .input {width:100%; display: inline-block}
.tm {margin-left:40px;}
.arrow-up{
content: "";
display: block;
position: relative;
background: url('/img/modal/butt_up.svg');
height: 30px;
width: 30px;
top: 30px;
right: -110px;
background-size: cover;
margin-top: -32px;
}
.arrow-down {
content: "";
display: block;
position: relative;
background: url('/img/modal/butt_down.svg');
height: 30px;
width: 30px;
top: 50px;
right: -110px;
background-size: cover;
margin-top: -32px;
}
.tm2 {margin-left:32px;}
.input { .input {
width: 333px; width: 336px;
height: 46px; height: 46px;
-webkit-border-radius: 7px; -webkit-border-radius: 7px;
border-radius: 7px; border-radius: 7px;
...@@ -64,7 +112,7 @@ ...@@ -64,7 +112,7 @@
font-size: 15px; font-size: 15px;
color: #333; color: #333;
box-sizing: border-box; box-sizing: border-box;
padding: 8px; padding: 16px;
} }
.input input[type="text"] { .input input[type="text"] {
......
<?php
## params
$mailTo = 'mind.it@ya.ru';
## fields
$name = isset($_POST['name']) ? $_POST['name'] : null;
$phone = isset($_POST['phone']) ? $_POST['phone'] : null;
$city = isset($_POST['city']) ? $_POST['city'] : null;
$email = isset($_POST['email']) ? $_POST['email'] : null;
$till = isset($_POST['till']) ? $_POST['till'] : null;
$from = isset($_POST['from']) ? $_POST['from'] : null;
## additional fields
$type = isset($_POST['type']) ? $_POST['type'] : null;
switch ($type) {
case 'callback':
$data = ['phone' => $phone, 'from' => $from, 'till' => $till];
$callback = new callback($data);
$callback->send($data);
echo json_encode(array('type'=>'success_send', 'text'=>'Ваша заявка успешно отправлена'));
break;
case 'order':
$data = ['name' => $name, 'email' => $email, 'city' => $city,];
$order = new order($data);
$order->send($data);
break;
default:
echo json_encode(array('type'=>'no_template', 'text'=>'Задайте шаблон обработчика!'));
break;
}
class Form{
public static function validate($data, $field = null)
{
switch ($field) {
case 'phone':
if (!preg_match("/^(8|\+7) ? ?\(?(\d{3})\)? ?(\d{3})[ -]?(\d{2})[ -]?(\d{2})/", $data))
die(json_encode(array('type'=>'error_phone', 'text'=>'Телефон введен неверно')));
return $data;
break;
case 'name':
if (mb_strlen($data) <= 1)
die(json_encode(array('type'=>'error_name', 'text'=>'Вы не ввели имя')));
return $data;
break;
case 'email':
if (!preg_match("/.+@.+\..+/i", $data))
die(json_encode(array('type'=>'error_email', 'text'=>'Почтовый адрес введен неверно')));
return $data;
break;
default:
if (strlen($data) < 2)
die(json_encode(array('type'=>'error', 'text'=>"Поле $field пусто")));
return $data;
}
}
public function send(array $data)
{
}
}
class callback extends Form {
public $phone;
public $till;
public $from;
function __construct(array $data)
{
$this->phone = Form::validate($data['phone'], 'phone');
$this->till = $data['till'];
$this->from = $data['from'];
}
}
class order extends Form {
public $name;
public $city;
public $email;
function __construct(array $data)
{
$this->name = Form::validate($data['name'], 'name');
$this->city = $data['city'];
$this->email = Form::validate($data['email'], 'email');
}
}
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 21.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
<style type="text/css">
.st0{fill:none;stroke:#D81F27;stroke-miterlimit:10;}
</style>
<polyline class="st0" points="20,12.5 15,17.5 10,12.5 "/>
</svg>
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 21.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
<style type="text/css">
.st0{fill:none;stroke:#D81F27;stroke-miterlimit:10;}
</style>
<polyline class="st0" points="10,17.5 15,12.5 20,17.5 "/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="20" height="20" viewBox="0 0 20 20">
<metadata><?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.6-c138 79.159824, 2016/09/14-01:09:01 ">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about=""/>
</rdf:RDF>
</x:xmpmeta>
<?xpacket end="w"?></metadata>
<image id="Vector_Smart_Object_copy_4" data-name="Vector Smart Object copy 4" width="20" height="20" xlink:href="data:img/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUBAMAAAB/pwA+AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEUAAAAFBwgFBwgFBwgFBwgFBwgFBwgAAAB+aCDGAAAABnRSTlMALc8k5OjSXqDqAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEgAACxIB0t1+/AAAAAd0SU1FB+EEGgw6Bh448ZQAAABSSURBVAjXYxAyYAADZkUGNWcI0ySJwSQFLMzs5gzGIEGQCJiACIBJqDIgBVUFEoYKAoVTw6AmMjCHpRpgMhEKkLQhDEOyAmExknOQHInkdISHANxMFvsh+uI0AAAAAElFTkSuQmCC"/>
</svg>
img/pin.png

1.28 KB

...@@ -224,8 +224,7 @@ ...@@ -224,8 +224,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="map-ct1"> <div id="map" class="map-ct1">
<div class="test"></div>
<div class="ct"> <div class="ct">
<div class="form1"> <div class="form1">
<div class="t1">Как стать франчайзи <br>языковых школ YES</div> <div class="t1">Как стать франчайзи <br>языковых школ YES</div>
...@@ -263,7 +262,7 @@ ...@@ -263,7 +262,7 @@
<!-- callback --> <!-- callback -->
<div class="modal hidden" id="callback"> <div class="modal hidden" id="callback">
<div class="modal-head"> <div class="modal-head">
<div class="modal-close">X</div> <div class="modal-close"><div class="modal-close-xray"></div></div>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<div class="modal-body-header"> <div class="modal-body-header">
...@@ -271,17 +270,22 @@ ...@@ -271,17 +270,22 @@
<small>и мы перезвоним в удобное для вас время</small> <small>и мы перезвоним в удобное для вас время</small>
</div> </div>
<div class="modal-body-content"> <div class="modal-body-content">
<form action=""> <form id="callback-form">
<fieldset> <fieldset>
<input type="text" id="phone" class="input" placeholder="+7"> <input type="hidden" name="type" value="callback">
<input type="text" name="phone" id="phone" class="input" placeholder="+7">
</fieldset> </fieldset>
<fieldset> <fieldset class="time tm">
<label for="from"></label> <label for="from"></label>
<input type="text" id="from" class="input" value="12:00"> <span class="arrow-up"></span>
<span class="arrow-down"></span>
<input type="text" id="from" name="from" class="input" value="12:00">
</fieldset> </fieldset>
<fieldset> <fieldset class="time tm2">
<label for="till"></label> <label for="till"></label>
<input type="text" id="till" class="input" value="12:30"> <span class="arrow-up"></span>
<span class="arrow-down"></span>
<input type="text" id="till" name="till" class="input" value="12:30">
</fieldset> </fieldset>
<fieldset> <fieldset>
<input type="submit" value="Отправить" class="button"> <input type="submit" value="Отправить" class="button">
...@@ -293,7 +297,7 @@ ...@@ -293,7 +297,7 @@
<!-- bid --> <!-- bid -->
<div class="modal hidden" id="bid"> <div class="modal hidden" id="bid">
<div class="modal-head"> <div class="modal-head">
<div class="modal-close">X</div> <div class="modal-close"><div class="modal-close-xray"></div></div>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<div class="modal-body-header"> <div class="modal-body-header">
...@@ -301,18 +305,19 @@ ...@@ -301,18 +305,19 @@
<small>на получение плана открытия школы</small> <small>на получение плана открытия школы</small>
</div> </div>
<div class="modal-body-content"> <div class="modal-body-content">
<form action=""> <form id="order-form">
<fieldset> <fieldset>
<label for="name">Ваше *</label> <input type="hidden" name="type" value="order">
<input type="text" id="name" class="input"> <label for="name" class="modal-label">Ваше имя *</label>
<input type="text" name="name" id="name" class="input">
</fieldset> </fieldset>
<fieldset> <fieldset>
<label for="mail">Электронная почта *</label> <label for="mail" class="modal-label">Электронная почта *</label>
<input type="text" id="mail" class="input"> <input type="text" name="email" id="mail" class="input">
</fieldset> </fieldset>
<fieldset> <fieldset>
<label for="city">Ваш город</label> <label for="city" class="modal-label">Ваш город</label>
<input type="text" id="city" class="input"> <input type="text" name="city" id="city" class="input">
</fieldset> </fieldset>
<fieldset> <fieldset>
<input type="submit" value="Отправить" class="button"> <input type="submit" value="Отправить" class="button">
...@@ -323,5 +328,147 @@ ...@@ -323,5 +328,147 @@
</div> </div>
<script type="text/javascript" src="js/common.js"></script> <script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="https://api-maps.yandex.ru/2.1/?lang=ru_RU"></script>
<script>
var myMap, data = [], geodata = [];
var mark_counter = 1;
function fromString (val) {
var parts = val.split(',');
return [parseFloat(parts[1]), parseFloat(parts[0])];
}
function init() {
data[0] = {
name: 'метро Кузьминки',
text: 'метро Кузьминки<br/>8-925-006-60-62<br/><a href="https://www.yescenter.ru/schools/kuzminki/">страница школы</a><br/>ул. Васильцовский Стан, д.11',
coords: '37.751188,55.716701',
geodata:'ул. Васильцовский Стан, д.11'
};data[1] = {
name: 'Люберцы',
text: 'Люберцы<br/>8-925-006-63-23<br/><a href="https://www.yescenter.ru/schools/lubertsy/">страница школы</a><br/>Октябрьский пр-т., д. 127, ТЦ Millenium Plaza',
coords: '37.88702,55.682423',
geodata:'Октябрьский пр-т., д. 127, ТЦ Millenium Plaza'
};data[2] = {
name: 'Раменское',
text: 'Раменское<br/>8-925-006-63-24<br/><a href="https://www.yescenter.ru/schools/ramenskoe/">страница школы</a><br/>ул. Красноармейская, д. 15а',
coords: '38.23726,55.572207',
geodata:'ул. Красноармейская, д. 15а'
};data[3] = {
name: 'Жуковский',
text: 'Жуковский<br/>8-925-006-63-13<br/><a href="https://www.yescenter.ru/schools/jucovsky/">страница школы</a><br/>ул. Гудкова, д. 21',
coords: '38.086361,55.599732',
geodata:'ул. Гудкова, д. 21'
};data[4] = {
name: 'Балашиха',
text: 'Балашиха<br/>8-925-006-63-21<br/><a href="https://www.yescenter.ru/schools/balashikha/">страница школы</a><br/>ш. Энтузиастов, д. 30, 3 этаж',
coords: '37.935707,55.792882',
geodata:'ш. Энтузиастов, д. 30, 3 этаж'
};data[5] = {
name: 'Подольск',
text: 'Подольск<br/>8-925-006-63-18<br/><a href="https://www.yescenter.ru/schools/podolsk/">страница школы</a><br/>ул. 50 лет ВЛКСМ, д.16',
coords: '37.537173,55.42588',
geodata:'ул. 50 лет ВЛКСМ, д.16'
};data[6] = {
name: 'Королев',
text: 'Королев<br/>8-925-006-63-17<br/><a href="https://www.yescenter.ru/schools/korolev/">страница школы</a><br/>ул. Карла Маркса, д.1а',
coords: '37.820558,55.924837',
geodata:'ул. Карла Маркса, д.1а'
};data[7] = {
name: 'Пушкино',
text: 'Пушкино<br/>8-925-006-63-10<br/><a href="https://www.yescenter.ru/schools/pushkino/">страница школы</a><br/>ул. Чехова д.12, ТОЦ «ВИТ»',
coords: '37.852029,56.008547',
geodata:'ул. Чехова д.12, ТОЦ «ВИТ»'
};data[8] = {
name: 'Егорьевск',
text: 'Егорьевск<br/>7-925-809-00-85<br/><a href="https://www.yescenter.ru/schools/egorievsk/">страница школы</a><br/>Откройте собственную школу YES в Егорьевске по франшизе Центра иностранных языков YES http://www.yescenter.ru/franchising/',
coords: '39.025935,55.382419',
geodata:'Откройте собственную школу YES в Егорьевске по франшизе Центра иностранных языков YES http://www.yescenter.ru/franchising/'
};data[9] = {
name: 'Солнцево',
text: 'Солнцево<br/>8-929-936-76-65<br/><a href="https://www.yescenter.ru/schools/solncevo/">страница школы</a><br/>ул. Солнцевский пр-т, д.6. корп.1',
coords: '37.400153,55.653908',
geodata:'ул. Солнцевский пр-т, д.6. корп.1'
};data[10] = {
name: 'Ховрино',
text: 'Ховрино<br/>8-925-800-73-43<br/><a href="https://www.yescenter.ru/schools/khovrino/">страница школы</a><br/>ул. Дыбенко, д.6',
coords: '37.485843,55.868435',
geodata:'ул. Дыбенко, д.6'
};data[11] = {
name: 'метро Павелецкая',
text: 'метро Павелецкая<br/>8-495-984-97-10<br/><a href="https://www.yescenter.ru/schools/paveleckaya/">страница школы</a><br/>ул. Кожевническая, д. 7, стр.2, 2 этаж, офис 202',
coords: '37.636635,55.719936',
geodata:'ул. Кожевническая, д. 7, стр.2, 2 этаж, офис 202'
};data[12] = {
name: 'Александров',
text: 'Александров<br/>8-900-590-88-90<br/><a href="https://www.yescenter.ru/schools/aleksandrov/">страница школы</a><br/>улица Свердлова, 34',
coords: '38.719554,56.396653',
geodata:'улица Свердлова, 34'
};data[13] = {
name: 'Тула',
text: 'Тула<br/>8-915-685-39-27<br/><a href="https://www.yescenter.ru/schools/tula/">страница школы</a><br/>ул. Арсенальная, 18',
coords: '37.603702,54.212492',
geodata:'ул. Арсенальная, 18'
};data[14] = {
name: 'метро Перово',
text: 'метро Перово<br/>8-499-755-56-16<br/><a href="https://www.yescenter.ru/schools/metro-perovo/">страница школы</a><br/>ул. Перовская д.66 корп. 7',
coords: '37.804224,55.743461',
geodata:'ул. Перовская д.66 корп. 7'
};data[15] = {
name: 'Санкт-Петербург',
text: 'Санкт-Петербург<br/>7-925-809-00-85<br/><a href="https://www.yescenter.ru/schools/sanktpeterburg/">страница школы</a><br/>Откройте собственную школу YES в Санкт-Петербурге по франшизе Центра иностранных языков YES http://www.yescenter.ru/franchising/',
coords: '30.407847,59.956687',
geodata:'Откройте собственную школу YES в Санкт-Петербурге по франшизе Центра иностранных языков YES http://www.yescenter.ru/franchising/'
};data[16] = {
name: 'Лыткарино',
text: 'Лыткарино<br/>8-495-999-26-86<br/><a href="https://www.yescenter.ru/schools/lytkarino/">страница школы</a><br/>Советская, 14б',
coords: '37.902985,55.578508',
geodata:'Советская, 14б'
};data[17] = {
name: 'Волоколамск',
text: 'Волоколамск<br/>8-926-138-34-44<br/><a href="https://www.yescenter.ru/schools/volokolamsk/">страница школы</a><br/>ул. Заводская, 23',
coords: '35.919882,56.007489',
geodata:'ул. Заводская, 23'
};
myMap = new ymaps.Map("map", {
center: ((data[0]['coords'] !== undefined) ? fromString(data[0]['coords']) : fromString('37.609218,55.753559')),
zoom: ((data[0]['coords'] !== undefined) ? 10 : 7)
}, {suppressMapOpenBlock: true});
var myCollection = new ymaps.GeoObjectCollection({}, {
iconLayout: 'default#image',
iconImageHref: '/img/pin.png',
iconImageSize: [25, 31],
iconImageOffset: [-25, -31]
});
for (var i = 0; i < data.length; i++) {
myCollection.add(
new ymaps.Placemark(
fromString(data[i]['coords']),
{
iconContent: data[i].address,
balloonContentHeader: data[i].address,
balloonContentBody: data[i].text,
hintContent: data[i].address
}
)
);
}
myMap.geoObjects.add(myCollection);
//myMap.behaviors.disable("scrollZoom");
myMap.controls.remove('searchControl');
myMap.controls.remove('typeSelector');
myMap.controls.remove('zoomControl');
myMap.controls.remove('mapTools');
myMap.controls.remove('trafficControl');
myMap.controls.remove('fullscreenControl');
myMap.controls.remove('geolocationControl');
myMap.controls.remove('rulerControl');
};
ymaps.ready(init);
</script>
</body> </body>
</html> </html>
\ No newline at end of file \ No newline at end of file
/* common */ /* common */
$(document).ready(function() { $(document).ready(function () {
if($('.mask').length>0) { if ($('.mask').length > 0) {
$(".mask").mask("8 (999) 999-99-99"); $(".mask").mask("8 (999) 999-99-99");
} }
//$('input, select').styler(); //$('input, select').styler();
var ff; var ff;
$('input[type=text]').focus(function() { $('input[type=text]').focus(function () {
if($(this).attr('data-place')==$(this).val()) { if ($(this).attr('data-place') == $(this).val()) {
$(this).val(''); $(this).val('');
} }
$(this).addClass('ac'); $(this).addClass('ac');
}); });
$('input[type=text]').blur(function() { $('input[type=text]').blur(function () {
if($(this).val()=='') { if ($(this).val() == '') {
$(this).val($(this).attr('data-place')); $(this).val($(this).attr('data-place'));
} }
$(this).removeClass('ac'); $(this).removeClass('ac');
}); });
$('textarea').focus(function() { $('textarea').focus(function () {
if($(this).attr('data-place')==$(this).val()) { if ($(this).attr('data-place') == $(this).val()) {
$(this).val(''); $(this).val('');
} }
$(this).addClass('ac'); $(this).addClass('ac');
}); });
$('textarea').blur(function() { $('textarea').blur(function () {
ff=$(this).attr('data-place'); ff = $(this).attr('data-place');
if($(this).val().length==0) { if ($(this).val().length == 0) {
$(this).val(ff); $(this).val(ff);
} }
$(this).removeClass('ac'); $(this).removeClass('ac');
}); });
function ress() { function ress() {
$('.sl-con').width($('.ct').width()+30); $('.sl-con').width($('.ct').width() + 30);
if($(window).width()<651) { if ($(window).width() < 651) {
$('.sl-con').width($('.ct').width()+16); $('.sl-con').width($('.ct').width() + 16);
} }
else if($(window).width()<961) { else if ($(window).width() < 961) {
$('.sl-con').width($('.ct').width()+24); $('.sl-con').width($('.ct').width() + 24);
} }
} }
ress(); ress();
$(window).resize(function() { $(window).resize(function () {
ress(); ress();
}); });
$(window).load(function() { $(window).load(function () {
ress(); ress();
}); });
$(window).load(function() { $(window).load(function () {
$('input[type=text]').each(function() { $('input[type=text]').each(function () {
$(this).attr('data-place',$(this).val()); $(this).attr('data-place', $(this).val());
}); });
$('textarea').each(function() { $('textarea').each(function () {
$(this).attr('data-place',$(this).val()); $(this).attr('data-place', $(this).val());
}); });
}); });
$('.sl1').slick({ $('.sl1').slick({
...@@ -82,20 +83,21 @@ $(document).ready(function() { ...@@ -82,20 +83,21 @@ $(document).ready(function() {
adaptiveHeight: true adaptiveHeight: true
}); });
$('.sl-con .item-poss a').fancybox({ $('.sl-con .item-poss a').fancybox({
helpers : { helpers: {
overlay: { overlay: {
locked: false locked: false
}, },
media : {}, media: {},
buttons : {} buttons: {}
} }
}); });
function test1() { function test1() {
var mac = navigator.platform.match(/(Mac|iPhone|iPod|iPad)/i) ? true : false; var mac = navigator.platform.match(/(Mac|iPhone|iPod|iPad)/i) ? true : false;
if(mac){ if (mac) {
$('.ord1,.ord2,.ord3,.form1 input[type=submit]').addClass('ac'); $('.ord1,.ord2,.ord3,.form1 input[type=submit]').addClass('ac');
} }
} }
test1(); test1();
}); });
var tag = document.createElement('script'); var tag = document.createElement('script');
...@@ -110,14 +112,14 @@ function onYouTubeIframeAPIReady() { ...@@ -110,14 +112,14 @@ function onYouTubeIframeAPIReady() {
width: '100%', width: '100%',
videoId: $('#player').attr('dt'), videoId: $('#player').attr('dt'),
events: { events: {
'onReady': function() { 'onReady': function () {
player.playVideo(); player.playVideo();
player.stopVideo(); player.stopVideo();
} }
} }
}); });
} }
$('.play1 span').click(function(e) { $('.play1 span').click(function (e) {
e.preventDefault(); e.preventDefault();
$(this).parent().fadeOut(200); $(this).parent().fadeOut(200);
player.playVideo(); player.playVideo();
...@@ -129,25 +131,86 @@ $(overlay).click(function () { ...@@ -129,25 +131,86 @@ $(overlay).click(function () {
closemodal('bid'); closemodal('bid');
}); });
$('.ord1').click(function(e){ $('.ord1').click(function (e) {
e.preventDefault(); e.preventDefault();
callmodal('callback'); callmodal('callback');
}); });
$('.ord2, .ord3').click(function(e){ $('.ord2, .ord3').click(function (e) {
e.preventDefault(); e.preventDefault();
callmodal('bid'); callmodal('bid');
}); });
$('.modal-close-xray').click(function () {
function callmodal(id){ closemodal($(this).parents('.modal').attr('id'));
});
function callmodal(id) {
overlay.removeClass('hidden'); overlay.removeClass('hidden');
// $('#'+id).css({ $('#' + id).removeClass('hidden');
// 'top' :
// })
$('#'+id).removeClass('hidden');
} }
function closemodal(id){ function closemodal(id) {
overlay.addClass('hidden'); overlay.addClass('hidden');
$('#'+id).addClass('hidden'); $('#' + id).addClass('hidden');
} }
$('.arrow-up').click(function () {
var nearInput = $(this).siblings('input');
var val = $(nearInput).val();
val = time(val, 'up');
$(nearInput).val(val);
});
$('.arrow-down').click(function () {
var nearInput = $(this).siblings('input');
var val = ($(nearInput)).val();
val = time(val, 'down');
$(nearInput).val(val);
});
function time(number, type) {
number = number.toString();
var date = '25.06.2014 ' + number.toString();
var d = new Date();
var time = date.replace(/^(\d+)\.(\d+)\./, '$2/$1/');
d.setTime(Date.parse(time));
if (type == 'down') {
d.setMinutes(d.getMinutes() - 90);
} else {
d.setMinutes(d.getMinutes() - 30);
}
return d.toLocaleTimeString().substr(0, 5);
}
$('#callback-form').submit(function(e){
e.preventDefault();
send('callback-form');
});
$('#order-form').submit(function(e){
e.preventDefault();
send('order-form');
});
function send(form){
$.ajax({
url: '/handler.php',
type: "POST",
dataType: "json",
data: $("#" + form).serialize(),
success: function (response) {
if (response.type == 'success_send') {
$('#'+form).find('input').prop("disabled", true);
alert(response.text)
}
if (response.type == 'error_name') {
alert(response.text)
}
if (response.type == 'error_email') {
alert(response.text)
}
if (response.type == 'error_phone') {
alert(response.text)
}
}
});
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!