');
if (end > results_length) {
end = results_length;
}
for (var i = start; i 30) {
asset_title = asset_title.substring(0, 30) + "...";
}
$tile.find('a.PhotoGallery__TitleLink').text(asset_title);
if (asset.Description.length > 2) {
$tile.find('p.PhotoGallery__Description').html(asset_description);
}
$target.append($tile);
$tile.find('div.PhotoGallery__Count').html('' + asset_count + ' Images');
delete asset;
}
}
} else {
$('#PhotoGallery-Container' + controlID).html( 'The photo gallery you have chosen does not exist.');
}
function draw_paging(current_page) {
var pages = Math.ceil(results_length / max_display);
var current = parseInt(current_page);
paging_target = $('#paginationWrapper' + controlID + ' .pagination-old');
paging_html = '';
paging_target.empty();
if (pages > 1) {
if (current == 1) {
paging_html += 'Prev';
} else {
paging_html += '' + (current - 1) + '';
}
paging_html += '';
if (current == pages) {
paging_html += 'Next';
} else {
paging_html += '' + (current + 1) + '';
}
paging_target.append(paging_html);
}
$('a.paging, a.prev, a.next').on('click', function (event) {
event.preventDefault();
var page_num = $(this).text();
draw_paging(page_num);
display_galleries(page_num);
$('body').scrollTop(0);
});
}
}).error(function (jqXHR, exception) {
var msg = '';
if (jqXHR.status === 0) {
msg = 'Not connect.\n Verify Network.';
} else if (jqXHR.status == 404) {
msg = 'Requested page not found. [404]';
} else if (jqXHR.status == 500) {
msg = 'Internal Server Error [500].';
} else if (exception === 'parsererror') {
msg = 'Requested JSON parse failed.';
} else if (exception === 'timeout') {
msg = 'Time out error.';
} else if (exception === 'abort') {
msg = 'Ajax request aborted.';
} else {
msg = 'Uncaught Error.\n' + jqXHR.responseText;
}
});
});
})(jQuery);
- ';
for (i = 1; i ' + i + '';
} else {
paging_html += '
- ' + i + ' '; } } paging_html += '
Related Links
- ';
for (i = 1; i ' + i + '';
} else {
paging_html += '
- ' + i + ' '; } } paging_html += '
Site Index & Credits
Plate Tectonics and Our National Parks
- Plate TectonicsâThe Unifying Theory of Geology
- Inner Earth Model
- Evidence of Plate Motions
- Types of Plate Boundaries
- Tectonic Settings of NPS SitesâMaster List
Teaching ResourcesâPlate Tectonics
Photos and MultimediaâPlate Tectonics
Geological MonitoringâPlate Tectonics
Plate Tectonics and Our National Parks (2020)
-
Text and Illustrations by Robert J. Lillie, Emeritus Professor of Geosciences, Oregon State University [E-mail]
-
Produced under a Cooperative Agreement for earth science education between the National Park Service's Geologic Resources Division and the American Geosciences Institute.