123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- // axios
- // axios.get('http://172.105.205.52:8000/courses?tag_string=(2)')
- // .then(function (response) {
- // console.log(response);
- // });
- // axios.post('/user', {
- // firstName: 'Fred',
- // lastName: 'Flintstone'
- // }).then(function (response) {
- // console.log(response);
- // })
- $( "#1" ).click(function() {
- $.ajax('http://172.105.205.52:8000/tags', {
- type: 'GET', // http method
- headers: { 'Access-Control-Allow-Origin': '*' },
- success: function (res) {
- var myJSON = JSON.stringify(res);
- // var a = res;
- // console.log(res);
- var d = JSON.parse(myJSON);
- console.log(d[0].name);
- },
-
- error: function (err) {
- console.log(err);
- }
- });
- });
- $( "#2" ).click(function() {
- $.ajax('http://172.105.205.52:8000/tags', {
- type: 'GET', // http method
- headers: { 'Access-Control-Allow-Origin': '*' },
- success: function (res) {
- var myJSON = JSON.stringify(res);
- // var a = res;
- // console.log(res);
- var d = JSON.parse(myJSON);
- console.log(d[1].name);
- },
-
- error: function (err) {
- console.log(err);
- }
- });
- });
- $( "#3" ).click(function() {
- $.ajax('http://172.105.205.52:8000/tags', {
- type: 'GET', // http method
- headers: { 'Access-Control-Allow-Origin': '*' },
- success: function (res) {
- var myJSON = JSON.stringify(res);
- // var a = res;
- // console.log(res);
- var d = JSON.parse(myJSON);
- console.log(d[2].name);
- },
-
- error: function (err) {
- console.log(err);
- }
- });
- });
- $( "#4" ).click(function() {
- $.ajax('http://172.105.205.52:8000/tags', {
- type: 'GET', // http method
- headers: { 'Access-Control-Allow-Origin': '*' },
- success: function (res) {
- var myJSON = JSON.stringify(res);
- // var a = res;
- // console.log(res);
- var d = JSON.parse(myJSON);
- console.log(d[3].name);
- },
-
- error: function (err) {
- console.log(err);
- }
- });
- });
- $( "#5" ).click(function() {
- $.ajax('http://172.105.205.52:8000/tags', {
- type: 'GET', // http method
- headers: { 'Access-Control-Allow-Origin': '*' },
- success: function (res) {
- var myJSON = JSON.stringify(res);
- // var a = res;
- // console.log(res);
- var d = JSON.parse(myJSON);
- console.log(d[4].name);
- },
-
- error: function (err) {
- console.log(err);
- }
- });
- });
- // jquery
- // $(document).ready(function () {
- // $.ajax('http://172.105.205.52:8000/tags', {
- // type: 'GET', // http method
- // headers: { 'Access-Control-Allow-Origin': '*' },
- // success: function (res) {
- // var myJSON = JSON.stringify(res);
- // // var a = res;
- // console.log(res);
- // var d = JSON.parse(myJSON);
- // console.log("start");
- // console.log(d);
- // console.log(d[0].name);
- // console.log("end");
-
-
-
- // },
-
- // error: function (err) {
- // console.log(err);
- // }
- // });
- // $("#submit").bind('click', function () {
- // var idiom = $("#idiom").val();
- // });
- // });
- // $.get("date-time.php", function(data){
- // console.log(res);
- // });
- $(".slider1").slick({
- dots: true,
- dotsClass: 'slick-dots',
- speed: 1000,
- });
|