Permalink
Browse files

init model

  • Loading branch information...
1 parent 3b9ba3c commit 8d6f2429d7730b69a487c3c63b9962c56c97f83b @mstolbov committed Mar 10, 2012
Showing with 31 additions and 0 deletions.
  1. +23 −0 index.html
  2. +8 −0 models.js
View
@@ -4,9 +4,32 @@
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<title>JS Mediator</title>
<link href="style.css" media="screen" rel="stylesheet" type="text/css" />
+<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
+<script src="models.js" type="text/javascript"></script>
<script src="mediator.js" type="text/javascript"></script>
</head>
<body>
+ <form id="">
+ <div>
+ <label for="type">тип конструкции</label>
+ <select id="type">
+ <option>1 стровки</option>
+ <option>2 створки</option>
+ <option>3 створки</option>
+ </select>
+ </div>
+
+ <div>
+ <label for="material">Профиль</label>
+ <select id="material">
+ <option>ПВХ</option>
+ <option>Дерево</option>
+ </select>
+ </div>
+ </form>
+
+ <label for="price">Цена</label>
+ <span id="price"></span>
</body>
</html>
View
@@ -0,0 +1,8 @@
+var mWindow = function(options) { this.init(options); }
+
+$.extend(mWindow.prototype, {
+ init: function(options) {
+ this.type = options.type;
+ this.material = options.material;
+ }
+});

0 comments on commit 8d6f242

Please sign in to comment.