{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./modules/scroll/focuspic.js","webpack:///./src/index.js"],"names":[],"mappings":";AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAK;AACL;AACA;;AAEA;AACA;AACA,yDAAiD,cAAc;AAC/D;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;;AAGA;AACA;;;;;;;;;;;;ACnEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,yEAAyE;AACzE,SAAS;AACT;AACA;AACA,4CAA4C,8BAA8B,4BAA4B,mBAAmB,EAAE;AAC3H,wCAAwC,mBAAmB,iBAAiB,UAAU,aAAa,YAAY,QAAQ,mBAAmB,mBAAmB,cAAc;AAC3K,8CAA8C,cAAc,cAAc,SAAS,WAAW,mBAAmB;;AAEjH,6CAA6C,8BAA8B,mBAAmB,OAAO,MAAM,WAAW,YAAY,mBAAmB,iBAAiB,4DAA4D,iBAAiB,cAAc;;AAEjQ,0CAA0C,mBAAmB,aAAa,WAAW,iBAAiB;AACtG,4CAA4C,kBAAkB,aAAa,gBAAgB,iBAAiB,gBAAgB,gBAAgB,UAAU,sBAAsB,sBAAsB;AAClM,2CAA2C,kBAAkB,gBAAgB,gBAAgB,WAAW;AACxG,4CAA4C,uBAAuB,uBAAuB;AAC1F,kDAAkD,4BAA4B;;AAE9E,yDAAyD,UAAU,WAAW,iBAAiB,oBAAoB;AACnH,wCAAwC,QAAQ,mBAAmB;AACnE,2CAA2C,gBAAgB,oBAAoB;;AAE/E,2CAA2C,aAAa,kBAAkB,SAAS,UAAU,aAAa,cAAc,EAAE;AAC1H,8CAA8C,YAAY,gBAAgB,qBAAqB,iBAAiB,iBAAiB;AACjI,gDAAgD,uBAAuB,eAAe,sBAAsB,gBAAgB,iBAAiB,gBAAgB;AAC7J,sDAAsD,sBAAsB,qBAAqB;AACjG,mDAAmD,qBAAqB;;;AAGxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6OAA6O,kCAAkC,oCAAoC,gCAAgC;AACnV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,qBAAqB;AAC5C;AACA,+DAA+D,kDAAkD,iBAAiB,yCAAyC,wBAAwB;AACnM;AACA;AACA,+DAA+D,kDAAkD,iBAAiB,8BAA8B,wBAAwB;AACxL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,2BAA2B,oBAAoB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,2BAA2B,oBAAoB;AAC/C;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,yEAAyE;AACzE,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,yEAAyE;AACzE,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACpNA;AACA;AACA;AACA,+CAA+C,UAAU;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,qBAAqB;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,WAAW;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,WAAW;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sC;AACA;AACA,mCAAmC,WAAW;AAC9C;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,qBAAqB;AACrB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,qBAAqB;AACrB;AACA,qB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,SAAS;AACT;AACA,CAAC","file":"index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/index.js\");\n","/**\r\n * Author:XiaoFeng\r\n * $Revision$ $Date: 2010-02-25 12:06:37 +0800 $\r\n */\r\n\r\n function $E(id) {\r\n return typeof (id) == 'string' ? document.getElementById(id) : id;\r\n }\r\n function $C(o) {\r\n return document.createElement(o);\r\n }\r\n var FocusPic = {\r\n MaxScreen: 7,\r\n CurScreen: 0,\r\n Width: 240,\r\n Height: 200,\r\n changeTime: 8000,\r\n FocusObj: null,\r\n Pics: \"\",\r\n Titles: \"\",\r\n STitles: \"\",\r\n Links: \"\",\r\n lnum: 0,\r\n _obj_pic: null,\r\n _obj_num: null,\r\n _obj_tit: null,\r\n refreshTimer: 0,\r\n imageCache: {},\r\n init: function () {\r\n this.lnum++;\r\n this.FocusObj = $E(this.FocusObj);\r\n this.Pics = this.Pics.split(\"|\");\r\n this.Titles = this.Titles.split(\"|\");\r\n this.STitles = this.STitles.split(\"|\");\r\n this.Links = this.Links.split(\"|\");\r\n if (this.Titles.length < this.MaxScreen) this.MaxScreen = this.Titles.length;\r\n\r\n this.CreateStyle();\r\n this.CreatePicBox();\r\n this.switchPic(this.CurScreen);\r\n this.refreshSwitchTimer = setTimeout('FocusPic.reSwitchPic();', this.changeTime);\r\n },\r\n CreateStyle: function () {\r\n var styleStr = \"\";\r\n styleStr += \".gee_foucspic_box { height:\" + this.Height + \"px; width:\" + this.Width + \"px; position:relative; }\";\r\n styleStr += \".gee_foucstit { position:absolute; overflow:hidden; bottom:0;_bottom:-1px; width:100%; left:0; padding:0px 0 0px; margin-bottom:0px; z-index:998;}\";\r\n styleStr += \".gee_foucstit:after {content:\\\".\\\";display:block;height:0;clear:both;visibility:hidden;}\";\r\n\r\n styleStr += \".gee_foucstit_mask { height:\" + this.Height + \"px; position:absolute;left:0;top:0;width:100%;z-index:999;text-indent:-999em; background:#000; filter:progid:DXImageTransform.Microsoft.Alpha(opacity=50); -moz-opacity:.5; opacity:0.5;}\";\r\n\r\n styleStr += \".gee_foucstit_n { position:relative;z-index:1000;float:left; display:inline;}\";\r\n styleStr += \".gee_foucstit_n h3{ line-height:35px; height:33px; font-size:18px; overflow:hidden; display:inline; padding:0 12px; margin:0; font-family:\\\"微软雅黑\\\"; font-weight:lighter;}\";\r\n styleStr += \".gee_foucstit_n p{ line-height:20px; font-size:12px; padding:0 12px; margin:0;}\";\r\n styleStr += \".gee_foucstit_n a { color:#FFF !important; text-decoration:none;}\";\r\n styleStr += \".gee_foucstit_n a:hover { text-decoration:underline;}\";\r\n\r\n styleStr += \".gee_foucspic,.gee_foucspicnum { margin:0; padding:0; list-style:none; position:absolute;}\";\r\n styleStr += \".gee_foucspic { left:0; overflow:visible;}\";\r\n styleStr += \".gee_foucspic li { display:inline; position:absolute;}\";\r\n\r\n styleStr += \".gee_foucspicnum { height:16px; line-height:16px; right:0; bottom:0;_bottom:-1px; z-index:1001; }\";\r\n styleStr += \".gee_foucspicnum li { float:left; font-size:12px; font-family:Verdana; margin-left:1px; display:inline;}\";\r\n styleStr += \".gee_foucspicnum li a { color:#FFF !important; padding:0 6px; text-decoration:none; font-size:10px; background:#000; display:block;}\";\r\n styleStr += \".gee_foucspicnum li a:hover { text-decoration:none; background:#FF0000;}\";\r\n styleStr += \".gee_foucspicnum li.at a { background:#FF0000;}\";\r\n\r\n\r\n var styleId = \"FocusPicSheet\";\r\n var _head = document.getElementsByTagName(\"head\").item(0);\r\n var _old = document.getElementById(styleId);\r\n if (_old) _head.removeChild(_old);\r\n var mystyle = document.createElement(\"style\");\r\n mystyle.type = \"text/css\";\r\n mystyle.id = styleId;\r\n if (mystyle.styleSheet) {// IE\r\n mystyle.styleSheet.cssText = styleStr;\r\n } else {// w3c\r\n var cssText = document.createTextNode(styleStr);\r\n mystyle.appendChild(cssText);\r\n }\r\n _head.appendChild(mystyle);\r\n },\r\n CreatePicBox: function () {\r\n var PicBox = $C(\"div\");\r\n PicBox.className = \"gee_foucspic_box\";\r\n //图片显示\r\n this._obj_pic = $C(\"ul\");\r\n this._obj_pic.id = \"_foucspic_ul_\" + this.lnum;\r\n this._obj_pic.className = \"gee_foucspic\";\r\n var liHtml = \"\";\r\n for (var i in this.Pics) {\r\n //if(i <= 0) \r\n liHtml += \"
  • \";\r\n //else liHtml += \"
  • \";\r\n liHtml += \"
  • \";\r\n }\r\n this._obj_pic.innerHTML = liHtml;\r\n PicBox.appendChild(this._obj_pic);\r\n //滚动数字\r\n this._obj_num = $C(\"ul\");\r\n this._obj_num.id = \"_foucspicnum_ul_\" + this.lnum;\r\n this._obj_num.className = \"gee_foucspicnum\";\r\n var NavStr = \"\";\r\n for (i = 1; i <= this.MaxScreen; i++) {\r\n if (i == 1) {\r\n NavStr += '
  • ' + i + '
  • ';\r\n }\r\n else {\r\n NavStr += '
  • ' + i + '
  • ';\r\n }\r\n\r\n }\r\n this._obj_num.innerHTML = NavStr;\r\n PicBox.appendChild(this._obj_num);\r\n //标题部分\r\n var titDiv = $C(\"div\");\r\n titDiv.className = \"gee_foucstit\";\r\n\r\n var maskDiv = $C(\"div\");\r\n maskDiv.className = \"gee_foucstit_mask\";\r\n titDiv.appendChild(maskDiv);\r\n\r\n this._obj_tit = $C(\"div\");\r\n this._obj_tit.id = \"_foucspictit_\" + this.lnum;\r\n this._obj_tit.className = \"gee_foucstit_n\";\r\n titDiv.appendChild(this._obj_tit);\r\n\r\n PicBox.appendChild(titDiv);\r\n\r\n this.FocusObj.appendChild(PicBox);\r\n },\r\n switchPic: function (index) {\r\n if (index > this.MaxScreen) {\r\n index = 1;\r\n }\r\n var _obj_pic_li = this._obj_pic.getElementsByTagName(\"li\");\r\n for (var i = 0; i < this.MaxScreen; i++) {\r\n _obj_pic_li[i].style.zIndex = 99 + i;\r\n //_obj_pic_li[i].style.display = \"none\";\r\n }\r\n _obj_pic_li[index].style.zIndex = 99 + this.MaxScreen;\r\n //_obj_pic_li[index].style.display = \"block\";\r\n this.showSwitchNav(index);\r\n this.showSwitchTitle(index);\r\n this.CurScreen = index;\r\n },\r\n showSwitchTitle: function (index) {\r\n var titlestr = \"\";\r\n if (this.Titles[index] != \"\" && this.Titles[index].length > 0) {\r\n titlestr += \"

    \" + this.Titles[index] + \"

    \";\r\n if (this.STitles != \"\" && this.STitles.length > 0) {\r\n titlestr += '

    ' + this.STitles[index] + '

    ';\r\n }\r\n this._obj_tit.parentNode.firstChild.style.display = \"\";\r\n } else {\r\n this._obj_tit.parentNode.firstChild.style.display = \"none\";\r\n }\r\n this._obj_tit.innerHTML = titlestr;\r\n },\r\n showSwitchNav: function (index) {\r\n var _obj_num_li = this._obj_num.getElementsByTagName(\"li\");\r\n for (var i = 0; i < this.MaxScreen; i++) {\r\n _obj_num_li[i].className = \"\";\r\n }\r\n _obj_num_li[index].className = \"at\";\r\n },\r\n reSwitchPic: function () {\r\n this.refreshSwitchTimer = null;\r\n this.CurScreen = this.CurScreen + 1;\r\n if (this.CurScreen >= this.MaxScreen) this.CurScreen = 0;\r\n this.switchPic(this.CurScreen);\r\n this.refreshSwitchTimer = setTimeout('FocusPic.reSwitchPic();', this.changeTime);\r\n },\r\n onError: function (obj) {\r\n if (typeof this.imageCache[obj.name] == \"undefined\") {\r\n this.imageCache[obj.name] = {};\r\n this.imageCache[obj.name].errTime = 0;\r\n }\r\n var cacheObj = this.imageCache[obj.name];\r\n cacheObj.errTime += 1;\r\n\r\n if (cacheObj.errTime < 3) {\r\n //alert(obj.name + \" Error TIME:\" +cacheObj.errTime);\r\n if (!!(window.attachEvent && !window.opera)) {\r\n var tempImg = new Image();\r\n tempImg.src = obj.src;\r\n tempImg.onreadystatechange = processReqChange\r\n\r\n function processReqChange() {\r\n if (tempImg.readyState == \"complete\") {\r\n obj.src = tempImg.src;\r\n }\r\n }\r\n } else {\r\n obj.src = obj.src;\r\n }\r\n }\r\n },\r\n pause: function () {\r\n clearTimeout(this.refreshSwitchTimer);\r\n },\r\n goon: function () {\r\n clearTimeout(this.refreshSwitchTimer);\r\n this.refreshSwitchTimer = setTimeout('FocusPic.reSwitchPic();', this.changeTime);\r\n },\r\n goSwitch: function (index) {\r\n clearTimeout(this.refreshSwitchTimer);\r\n this.CurScreen = index - 1;\r\n this.reSwitchPic();\r\n }\r\n };\r\nwindow.FocusPic = FocusPic\r\nmodule.exports = FocusPic\r\n","var focuspic = require('../modules/scroll/focuspic');\r\n// var head = require('../modules/head/header')\r\n$(function () {\r\n // $('.header').append(head.Head.initHead({ type: 1 }))\r\n getBanner()\r\n getOilList()\r\n getOilComment()\r\n getOilPrice()\r\n // 获取banner 位置\r\n function getBanner() {\r\n $.ajax({\r\n type: \"get\",\r\n url: \"https://hy.eastmoney.com/dataapi/bgl.aspx?type=image&id=458&callback=?\",\r\n dataType: \"jsonp\",\r\n success: function (json) {\r\n var pics = []\r\n var titles = []\r\n var links = []\r\n for (var index = 0; index < json.length; index++) {\r\n pics.push(json[index].src)\r\n titles.push(json[index].title)\r\n links.push(json[index].href)\r\n }\r\n focuspic.FocusObj = 'focuspic';\r\n focuspic.Width = 640;\r\n focuspic.Height = 300;\r\n focuspic.Pics = pics.join('|');\r\n focuspic.Titles = titles.join('|');\r\n focuspic.Links = links.join('|');\r\n focuspic.init();\r\n },\r\n error: function () {\r\n alert('fail');\r\n }\r\n });\r\n };\r\n // 获取原油咨询\r\n function getOilList() {\r\n $.ajax({\r\n type: \"get\",\r\n url: \"https://hy.eastmoney.com/dataapi/news.aspx?type=Attribute&id=369&callback=?\",\r\n dataType: \"jsonp\",\r\n success: function (array) {\r\n var html = ''\r\n for (var index = 0; index < 5; index++) {\r\n html += '
  • ' \r\n html += ''\r\n html += '' + array[index].Art_Title + ''\r\n html += '' \r\n html += '' + array[index].Art_ShowTime.slice(0, 10) + ''\r\n html += '
  • '\r\n }\r\n $('.oil-zx').append(html)\r\n },\r\n error: function () {\r\n alert('fail');\r\n }\r\n })\r\n }\r\n\r\n // 获取评论\r\n function getOilPrice() {\r\n $.ajax({\r\n type: \"get\",\r\n url: \"https://hy.eastmoney.com/dataapi/news.aspx?type=Attribute&id=370&callback=?\",\r\n dataType: \"jsonp\",\r\n success: function (array) {\r\n var html = ''\r\n for (var index = 0; index < 5; index++) {\r\n html += '
  • '\r\n html += ''\r\n html += ''+ array[index].Art_Title + ''\r\n html +=''\r\n html += '' + array[index].Art_ShowTime.slice(0, 10) + ''\r\n html += '
  • '\r\n }\r\n $('.commentLi').append(html)\r\n },\r\n error: function () {\r\n alert('fail');\r\n }\r\n })\r\n }\r\n // 获取期货报价\r\n function getOilComment() {\r\n $.ajax({\r\n type: \"get\",\r\n url: 'https://nufm.dfcfw.com/EM_Finance2014NumericApplication/JS.aspx?type=CT&cmd=C.F_INE_SC&sty=SINEP4L&st=c&sr=-1&p=1&ps=6&cb=?&js=&token=daced312f3774926b0d3364e177c768c',\r\n dataType: \"jsonp\",\r\n success: function (json) { \r\n var html = '' \r\n for (var index = 0; index < 6; index++) {\r\n html += ''\r\n html += '' + json[index].split(',')[1]+''\r\n html += ''\r\n if (json[index].split(',')[4] > 0) {\r\n html += ''+ json[index].split(',')[3] +''\r\n } else if (json[index].split(',')[4] == 0) {\r\n html += ''+ json[index].split(',')[3] +''\r\n } else {\r\n html += ''+ json[index].split(',')[3] +''\r\n }\r\n \r\n html += ''\r\n html += ''+ json[index].split(',')[4] +''\r\n html += ''\r\n if (json[index].split(',')[4] > 0) {\r\n html += ''+ json[index].split(',')[5] +''\r\n } else if (json[index].split(',')[4] == 0) {\r\n html += ''+ json[index].split(',')[5] +''\r\n } else {\r\n html += ''+ json[index].split(',')[5] +''\r\n } \r\n html += ''\r\n html += ''+ json[index].split(',')[6] +''\r\n html += ''+ json[index].split(',')[7] +''\r\n html += ''+ json[index].split(',')[8] +''\r\n html += ''+ json[index].split(',')[9] +''\r\n html += ''\r\n }\r\n $('.qh-table tbody').append(html)\r\n },\r\n error: function (err) {\r\n alert(err);\r\n }\r\n })\r\n }\r\n})\r\n"],"sourceRoot":""}