");
}
- $('#row'+row).append("
" + entity_arr[i] + "
");
+// $('#row'+row).append("
" + entity_arr[i] + "
");
+ $('#row'+row).append(entity_arr[i]);
+
if (column == 3){
column = 0;
row++;
@@ -1520,7 +1524,9 @@ var get_stats = function(tagline) {
$('.mh-wi').click( function () {
var summary = "
Summary: "+json.data.summary_long+"
";
summary += "
Last Updated: "+json.data.weather_lastupdated;
-
+ if ($('.mh-wi-icon').hasClass("wi-na")) {
+ summary += "
Clouds:  "+json.data.clouds;
+ }
$('#lastResponse').find('.modal-body').html(summary);
$('#lastResponse').modal({
show: true
@@ -1550,6 +1556,12 @@ var get_wi_icon = function (conditions,rain,snow,night) {
icon = "wi-cloudy";
if (rain) icon = "wi-rain";
if (snow) icon = "wi-snow";
+
+ } else if (conditions == "rain") {
+ icon += "rain";
+
+ } else if (conditions == "snow") {
+ icon += "snow";
} else if (conditions == "sky clear" || conditions == "" || conditions == "clear") {
if (night) {
@@ -1581,7 +1593,7 @@ var get_wi_icon = function (conditions,rain,snow,night) {
}
}
- } else if (conditions.includes("few clouds") || conditions == "scattered clouds" || conditions == "broken clouds") {
+ } else if (conditions.includes("few clouds") || conditions == "scattered clouds" || conditions == "broken clouds" || conditions == "cloudy") {
if (rain) {
icon += "rain";
} else if (snow) {
@@ -1593,7 +1605,6 @@ var get_wi_icon = function (conditions,rain,snow,night) {
} else {
icon = "wi-na";
}
-
return icon;
}
@@ -3454,6 +3465,46 @@ $(document).ready(function() {
display_mode = $(this).find('input').attr('id');
developer = false;
}
+
+ if (developer == true) {
+ //turn on collections drag-n-dropping
+ $("#list_content").sortable({
+ tolerance: "pointer",
+ items: ".col-sm-4",
+ update: function( event, ui ) {
+ var URLHash = URLToHash();
+ //Get Sorted Array of Entities
+ var outputJSON = $( "#list_content" ).sortable( "toArray", { attribute: "colid" } );
+ //outputJSON = '["' + outputJSON.join('","') + '"]';
+ //URLHash.path = "/objects/" + entity + "/sort_order";
+ //delete URLHash.parents;
+ console.log("outputJSON="+JSON.stringify(outputJSON));
+ //URLHash={"_collection_key":"0,6"}
+ console.log("URLHash="+JSON.stringify(URLHash));
+ console.log("Key="+URLHash._collection_key.substr(URLHash._collection_key.lastIndexOf(',') + 1));
+
+ },
+ //to prevent long clicks from firing while dragging
+ start: function(event, ui) {
+ // $("#list_content").mayTriggerLongClicks().off();
+ },
+ stop: function(event, ui) {
+ // $("#list_content").mayTriggerLongClicks().on( 'longClick', function() {
+ // var entity = $(this).attr("entity");
+ // console.log("long_click="+JSON.stringify($(this)));
+ // });
+ }
+ });
+ //$('#list_content').disableSelection();
+ $("#list_content").mayTriggerLongClicks().on( 'longClick', function() {
+ var entity = $(this).attr("entity");
+ console.log("long_click="+JSON.stringify($(this)));
+ });
+ } else {
+ $("#list_content").sortable("destroy");
+ //$("#list_content").enableSelection();
+ $("#list_content").mayTriggerLongClicks().off();
+ }
document.cookie = "display_mode="+display_mode;
document.cookie = "developer="+developer;
diff --git a/web/ia7/index.shtml b/web/ia7/index.shtml
index e635c72d7..ff486f8e6 100644
--- a/web/ia7/index.shtml
+++ b/web/ia7/index.shtml
@@ -372,6 +372,24 @@