Common.jsx 745 B

12345678910111213141516171819202122232425262728293031
  1. import React, { Component } from 'react';
  2. import Services from './Services.jsx';
  3. export default class Common extends Component {
  4. getServices() {
  5. return Services.get();
  6. }
  7. renderServices() {
  8. return <Services/>;
  9. }
  10. render() {
  11. return <div id='Common'>
  12. <header>
  13. <a href='https://start.mephi.ru/start' target='iframe' onClick={function(){$('select#services :nth-child(1)').prop('selected', true); $('iframe').trigger('change');return false}}><img id='logo' src='/images/mephi_logo_onwhite_32px.png' alt='MEPHI logo' width='32px' height='32px'/></a>
  14. <nav>
  15. {this.renderServices()}
  16. </nav>
  17. <div id='auth'>
  18. test
  19. </div>
  20. </header>
  21. <iframe name='iframe' id='iframe' src='/start'></iframe>
  22. </div>;
  23. }
  24. }