Показать сообщение отдельно
  #14 (permalink)  
Старый 01.03.2018, 03:24
Профессор
Отправить личное сообщение для spinastr Посмотреть профиль Найти все сообщения от spinastr
 
Регистрация: 02.05.2016
Сообщений: 390

Нашёл нормальные иконки ссылка как их вставить ?

7, 8, 10, 15 наборы самые нормальные

Подскажите как вставить картинки в скрипт?

$(document).ready(function() {
 $('#town').html("город");
 $('#country').html("область.");

 // OpenWeatherMap API request.
 var url = '//api.openweathermap.org/data/2.5/weather';

 $.getJSON(url, {
 q: "Ryazan", 
 units: "metric",
 lang:"RU",
 APPID: "2bae515a0124fef864cf38e0f2986b32"
 }, function(returnedData) {
 
 $('#celsius').html((returnedData.main.temp).toFixed(1) + ' °C');
 $('#celsius2').html((returnedData.main.temp).toFixed(1) + ' °C');
 // Convert Celsius to Fahrenheit.
 $('#fahrenheit').html((returnedData.main.temp * 1.8 + 32).toFixed(1) + ' °F');
 // Toggle between Celsius and Fahrenheit.
 $("#toggle2").click(function() {
 $(".toggler2").toggle();
 });
 $('#wind-humidity').html(returnedData.main.humidity + " %" + " вла");
 $('#wind-deg').html(returnedData.wind.deg + ' мм');
 $('#wind').html(returnedData.wind.speed + " м/с");
 $('#description').html(returnedData.weather["0"].description);
 }).fail(function() {
 console.log("error");
 });

});
Ответить с цитированием