Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "use strict";
- (function(window,document,$){
- $(function(){
- var $ausgabe = $('#hier');
- var jqxhr = $.get("lib/data/newsthemen.json", function (data) {
- // console.log(data);
- var i = rand(0,data.length-1);
- $ausgabe.find('h1').html( data[i].h1 );
- $ausgabe.find('p').eq(0).html( data[i].p0 );
- $ausgabe.find('p').eq(1).html( data[i].p1 + "<br>" + "<a href='#' title='" + data[i].atitle + "'>mehr</a>" );
- }, "json");
- });
- } (window,document,jQuery) );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement