diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index 03d9549..a389637 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -2,5 +2,21 @@ \ No newline at end of file diff --git a/src/index.tsx b/src/index.tsx index d17421e..43064df 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -19,7 +19,7 @@ const Router = ReactRouterDOM.BrowserRouter; ReactDOM.render(
-
+
diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx index 8776211..a5b4c78 100644 --- a/src/pages/Home.tsx +++ b/src/pages/Home.tsx @@ -2,15 +2,7 @@ import React from 'react'; import {Helmet} from 'react-helmet'; import {catalogBase} from "../api/constants"; -import onyourphone_rocky_us from '../assets/onyourphone_rocky_us.png'; -import pc_210x235 from '../assets/pc_210x235.png'; -import xbox_210x235 from '../assets/xbox_210x235.png'; -import subfeature_software from '../assets/230x110_subfeature_software.png'; -import spacer from "../assets/spacer.gif"; -import arrow_30 from "../assets/arrow_30_px.svg"; -import btn_circle1 from "../assets/btn_circle1.svg"; -import btn_circle2 from "../assets/btn_circle2.svg"; -import btn_circle3 from "../assets/btn_circle3.svg"; +// import onyourphone_rocky_us from '../assets/onyourphone_rocky_us.png'; import '../App.css'; import '../assets/zune.css'; @@ -30,6 +22,13 @@ class Home extends React.Component { }; } + ajaxLoader(albumNewReleases: string, s: string) { + return function (p1: React.MouseEvent) { + console.log(albumNewReleases); + console.log(s); + }; + } + // Changes XML to JSON xmlToJson(xml) { // Create the return object @@ -50,13 +49,13 @@ class Home extends React.Component { // do children if (xml.hasChildNodes()) { - for(var i = 0; i < xml.childNodes.length; i++) { + for (var i = 0; i < xml.childNodes.length; i++) { var item = xml.childNodes.item(i); var nodeName = item.nodeName; - if (typeof(obj[nodeName]) == "undefined") { + if (typeof (obj[nodeName]) == "undefined") { obj[nodeName] = this.xmlToJson(item); } else { - if (typeof(obj[nodeName].push) == "undefined") { + if (typeof (obj[nodeName].push) == "undefined") { var old = obj[nodeName]; obj[nodeName] = []; obj[nodeName].push(old); @@ -80,7 +79,8 @@ class Home extends React.Component { let evaluator = new XPathEvaluator(); let expression = evaluator.createExpression("//*[local-name()='entry']"); let result = expression.evaluate(feed.ownerDocument, XPathResult.ORDERED_NODE_ITERATOR_TYPE); - let item = result.iterateNext();this.setState({ + let item = result.iterateNext(); + this.setState({ musicEntry: this.xmlToJson(item) }) /*while (item) { @@ -100,947 +100,798 @@ class Home extends React.Component { render() { return ( -
+ <> - Zune Music + Video | Zunes.tk + Music | Zunes.tk -
-
-
- - - - - - -
-
-
-

- your entertainment, everywhere -

-
-
-
-
-
+
+
+
    +
  •  
  • +
-
-
- - - - - - -
-
-
-
-

Zune - Music + Video brings entertainment anywhere you are, - in - exciting - new ways.

-
-
-
-
-
-
+

+

music

+

-
-
- - - - - - - - - - -
-
-
-
-
- - - - - - -
-
-
-

- - Image: Zune on Windows Phone 7 - -

- - - - - - - -
- -
- Zune brings your - entertainment - to life -
-
- - Image: arrow - -
-

 

-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - - - -
-
-
-

- Image: Zune on Windows Phone 7 -

- - - - - - - -
- -
- Your music and videos on the - go -
-
- - Image: arrow - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - - - -
-
-
-

- Image: Zune on Windows Phone 7 -

- - - - - - - -
- -
- Movies and music in - extraordinary ways -
-
- - Image: arrow - -
-
-
-
-
-
-
-
-
-
- -
-
- - - - - - - - - - - - -
-
-
-
-
- - - - - - -
-
-
-
- GET STARTED WITH ZUNE -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - - - -
-
-
- - - - - - - -
- - Image: Step 1 - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - - - -
-
-
- - - - - - - -
- - Image: Step 2 - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - - - -
-
-
- - - - - - - -
- Image: Step 3 - - - -
-
-
-
-
-
-
-
-
-
-
- -
-
- - - - - - - - -
-
-
-
-
- - - - - - -
-
-
-
-

what's new

-
-
-
-
-
-
-
-
-
- - - - - - -
-
-
- - Image: Zune software - -
-
-
-
-
-
-
- - - - - - -
-
-
-
- GET THE LATEST
- ZUNE SOFTWARE UPDATE
-
-

Download the new Zune software, which - provides improved performance, new - features, - and seamless integration with Windows - Phone.

-

- - Download the software -

-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - - - -
-
-
-
-

this week in zune marketplace

-
-
-
-
-
-
-
-
-
- - - - - - - - - - -
-
-
-
-
- - - - - - -
-
-
-

- MUSIC -

-
-
-
-
-
-
-
- - - - - - -
-
-
- - - - -
-
-
-
-
-
-
-
- - - - - - -
-
-
-
-
- ZUNE - MUSIC - PASS -
-

Unlimited - music, - wherever you - are.

-

- Learn more -

-

- - Try Zune Music Pass -

-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - - - -
-
-
-

- MOVIES - -

-
-
-
-
-
-
-
- - - - - - -
-
-
- - - - - - - -
- - Image: Conan The Barbarian - - -

- - Conan - The - Barbarian -
- Lionsgate -

-

 

-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - - - -
-
-
-

- - TV - -

-
-
-
-
-
-
-
- - - - - - -
-
-
- - - - - - - -
- - Image: Grimm - - - - The - Walking - Dead -
- AMC -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ + + +
+
+
+
+ + + + + + + + + + + + +